|
85 | 85 | @update:model-value="onMaxSubmissionsChange"> |
86 | 86 | {{ t('forms', 'Limit number of responses') }} |
87 | 87 | </NcCheckboxRadioSwitch> |
88 | | - <div v-show="hasMaxSubmissions && !formArchived" class="settings-div--indent"> |
| 88 | + <div |
| 89 | + v-show="hasMaxSubmissions && !formArchived" |
| 90 | + class="settings-div--indent"> |
89 | 91 | <NcInputField |
90 | 92 | v-model="maxSubmissionsValue" |
91 | 93 | type="number" |
|
94 | 96 | :label="t('forms', 'Maximum number of responses')" |
95 | 97 | @update:model-value="onMaxSubmissionsValueChange" /> |
96 | 98 | <p class="settings-hint"> |
97 | | - {{ t('forms', 'Form will be closed automatically when the limit is reached.') }} |
| 99 | + {{ |
| 100 | + t( |
| 101 | + 'forms', |
| 102 | + 'Form will be closed automatically when the limit is reached.', |
| 103 | + ) |
| 104 | + }} |
98 | 105 | </p> |
99 | 106 | </div> |
100 | 107 | <NcCheckboxRadioSwitch |
@@ -200,8 +207,8 @@ import { loadState } from '@nextcloud/initial-state' |
200 | 207 | import moment from '@nextcloud/moment' |
201 | 208 | import { directive as ClickOutside } from 'v-click-outside' |
202 | 209 | import NcButton from '@nextcloud/vue/components/NcButton' |
203 | | -import NcInputField from '@nextcloud/vue/components/NcInputField' |
204 | 210 | import NcCheckboxRadioSwitch from '@nextcloud/vue/components/NcCheckboxRadioSwitch' |
| 211 | +import NcInputField from '@nextcloud/vue/components/NcInputField' |
205 | 212 | import NcDateTimePicker from '@nextcloud/vue/components/NcDateTimePicker' |
206 | 213 | import NcIconSvgWrapper from '@nextcloud/vue/components/NcIconSvgWrapper' |
207 | 214 | import NcNoteCard from '@nextcloud/vue/components/NcNoteCard' |
@@ -324,7 +331,10 @@ export default { |
324 | 331 | }, |
325 | 332 |
|
326 | 333 | hasMaxSubmissions() { |
327 | | - return this.form.maxSubmissions !== null && this.form.maxSubmissions !== undefined |
| 334 | + return ( |
| 335 | + this.form.maxSubmissions !== null |
| 336 | + && this.form.maxSubmissions !== undefined |
| 337 | + ) |
328 | 338 | }, |
329 | 339 |
|
330 | 340 | maxSubmissionsValue: { |
|
0 commit comments