File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8686 {{ t('forms', 'Limit number of responses') }}
8787 </NcCheckboxRadioSwitch >
8888 <div v-show =" hasMaxSubmissions && !formArchived" class =" settings-div--indent" >
89- <input
90- v-model.number =" maxSubmissionsValue"
89+ <NcInputField
90+ v-model =" maxSubmissionsValue "
9191 type="number"
92- min =" 1"
92+ : min =" 1 "
9393 :disabled =" locked "
94- :placeholder =" t('forms', 'Maximum number of responses')"
95- class =" max-submissions__input"
96- @change =" onMaxSubmissionsValueChange" />
94+ :label =" t (' forms' , ' Maximum number of responses' )"
95+ @update :model-value =" onMaxSubmissionsValueChange " />
9796 <p class =" settings-hint" >
9897 {{ t('forms', 'Form will be closed automatically when the limit is reached.') }}
9998 </p >
@@ -201,6 +200,7 @@ import { loadState } from '@nextcloud/initial-state'
201200import moment from ' @nextcloud/moment'
202201import { directive as ClickOutside } from ' v-click-outside'
203202import NcButton from ' @nextcloud/vue/components/NcButton'
203+ import NcInputField from ' @nextcloud/vue/components/NcInputField'
204204import NcCheckboxRadioSwitch from ' @nextcloud/vue/components/NcCheckboxRadioSwitch'
205205import NcDateTimePicker from ' @nextcloud/vue/components/NcDateTimePicker'
206206import NcIconSvgWrapper from ' @nextcloud/vue/components/NcIconSvgWrapper'
@@ -213,6 +213,7 @@ import { FormState } from '../../models/Constants.ts'
213213export default {
214214 components: {
215215 NcButton,
216+ NcInputField,
216217 NcCheckboxRadioSwitch,
217218 NcDateTimePicker,
218219 NcIconSvgWrapper,
You can’t perform that action at this time.
0 commit comments