Skip to content

Commit adc7030

Browse files
committed
fix code for new eslint requirements
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
1 parent 70fee05 commit adc7030

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

src/components/OptionInputDialog.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
size="normal"
1313
@update:open="$emit('update:open', $event)">
1414
<NcTextArea
15-
:value.sync="enteredOptions"
15+
v-model="enteredOptions"
1616
:label="t('forms', 'Add multiple options (one per line)')"
1717
:placeholder="t('forms', 'Add multiple options (one per line)')"
1818
resize="vertical"
@@ -21,7 +21,7 @@
2121
:input-label="t('forms', 'Options')"
2222
multiple
2323
disabled
24-
:value="multipleOptions" />
24+
:model-value="multipleOptions" />
2525
</NcDialog>
2626
</template>
2727

src/components/Questions/Question.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
:label="t('forms', 'Technical name of the question')"
102102
:label-outside="false"
103103
:show-trailing-button="false"
104-
:value="name"
104+
:model-value="name"
105105
@input="onNameChange">
106106
<template #icon>
107107
<IconIdentifier :size="20" />

src/components/Questions/QuestionDate.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
</template>
8484
<div class="question__content">
8585
<NcDateTimePicker
86-
:value="time"
86+
:model-value="time"
8787
:disabled="!readOnly"
8888
:format="stringify"
8989
:placeholder="datetimePickerPlaceholder"

src/components/Questions/QuestionDropdown.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</template>
2727
<NcSelect
2828
v-if="readOnly"
29-
:value="selectedOption"
29+
:model-value="selectedOption"
3030
:name="name || undefined"
3131
:placeholder="selectOptionPlaceholder"
3232
:multiple="isMultiple"

src/components/Questions/QuestionFile.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
type="multiselect"
4747
multiple
4848
taggable
49-
:value="extraSettings?.allowedFileExtensions || []"
49+
:model-value="extraSettings?.allowedFileExtensions || []"
5050
@option:created="onAllowedFileExtensionsAdded"
5151
@option:deselected="onAllowedFileExtensionsDeleted" />
5252

@@ -56,23 +56,23 @@
5656
<template v-if="!allowedFileTypesDialogOpened">
5757
<NcActionInput
5858
type="number"
59-
:value="maxAllowedFilesCount"
59+
:model-value="maxAllowedFilesCount"
6060
label-outside
6161
:label="t('forms', 'Maximum number of files')"
6262
:show-trailing-button="false"
6363
@input="onMaxAllowedFilesCountInput($event.target.value)" />
6464

6565
<NcActionInput
6666
type="number"
67-
:value="maxFileSizeValue"
67+
:model-value="maxFileSizeValue"
6868
label-outside
6969
:show-trailing-button="false"
7070
:label="t('forms', 'Maximum file size')"
7171
@input="onMaxFileSizeValueInput($event.target.value)" />
7272

7373
<NcActionInput
7474
type="multiselect"
75-
:value="maxFileSizeUnit"
75+
:model-value="maxFileSizeUnit"
7676
:options="availableUnits"
7777
required
7878
:clearable="false"

src/components/Questions/QuestionMultiple.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
:label="t('forms', 'Minimum options to be checked')"
4040
:label-outside="false"
4141
:show-trailing-button="false"
42-
:value="extraSettings.optionsLimitMin"
42+
:model-value="extraSettings.optionsLimitMin"
4343
@update:value="onLimitOptionsMin" />
4444

4545
<!-- Allow setting a maximum -->
@@ -59,7 +59,7 @@
5959
:label="t('forms', 'Maximum options to be checked')"
6060
:label-outside="false"
6161
:show-trailing-button="false"
62-
:value="extraSettings.optionsLimitMax"
62+
:model-value="extraSettings.optionsLimitMax"
6363
@update:value="onLimitOptionsMax" />
6464
</template>
6565
<NcActionButton close-after-click @click="isOptionDialogShown = true">

0 commit comments

Comments
 (0)