|
16 | 16 | 'fsm_def': {'name': $t('fsmdef')}, |
17 | 17 | }" |
18 | 18 | @submitFormStart="submitMessageLayout" |
19 | | - @initializedFormValues="initializedFormValues" |
20 | 19 | :sections="{ |
21 | 20 | [$t('general')]: [ |
22 | 21 | 'name', |
|
39 | 38 | 'stick_input_prompt', |
40 | 39 | 'fit_to_parent', |
41 | 40 | 'stick_input_prompt', |
| 41 | + 'allow_attachments', |
| 42 | + ], |
| 43 | + [$t('interfacing')]: [ |
42 | 44 | 'speech_recognition', |
| 45 | + 'speech_recognition_lang', |
43 | 46 | 'speech_recognition_auto_send', |
44 | | - 'allow_attachments', |
| 47 | + 'speech_recognition_always_on', |
| 48 | + 'speech_recognition_phrase_activation', |
| 49 | + 'speech_recognition_beep', |
| 50 | + 'speech_synthesis', |
| 51 | + 'speech_synthesis_pitch', |
| 52 | + 'speech_synthesis_rate', |
| 53 | + 'speech_synthesis_voices', |
| 54 | + 'speech_synthesis_enabled_by_default' |
45 | 55 | ], |
46 | 56 | [$t('advanced')]: [ |
47 | 57 | 'custom_css', |
@@ -159,20 +169,6 @@ await itemsStore.loadSchema() |
159 | 169 | function submitFieldData() { |
160 | 170 | fieldData.value.submit() |
161 | 171 | } |
162 | | -function initializedFormValues(form) { |
163 | | - if(form.custom_i_framed_msgs) |
164 | | - form.custom_i_framed_msgs = JSON.stringify(form.custom_i_framed_msgs, null, 4) |
165 | | - if(form.initial_conversation_metadata) |
166 | | - form.initial_conversation_metadata = JSON.stringify(form.initial_conversation_metadata, null, 4) |
167 | | - // displayingOrder.value = form.sources_first |
168 | | - // elementsShown.value = form.display_generation.toString()[0] + form.display_sources.toString()[0] |
169 | | -} |
170 | | -function submitMessageLayout(_, form) { |
171 | | - return |
172 | | - form.display_generation = elementsShown.value[0] === 't' |
173 | | - form.display_sources = elementsShown.value[1] === 't' |
174 | | - form.sources_first = displayingOrder.value |
175 | | -} |
176 | 172 |
|
177 | 173 | function getCss(formObj) { |
178 | 174 | let css = ":root {"; |
|
0 commit comments