Skip to content

Commit 4dbf369

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

File tree

10 files changed

+14
-17
lines changed

10 files changed

+14
-17
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">

src/components/Questions/QuestionShort.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
v-if="validationType === 'regex'"
6161
ref="regexInput"
6262
:label="t('forms', 'Regular expression for input validation')"
63-
:value="validationRegex"
63+
:model-value="validationRegex"
6464
@input="onInputRegex"
6565
@submit="onSubmitRegex">
6666
<template #icon>

src/components/SidebarTabs/SettingsSidebarTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
:format="stringifyDate"
6868
:minute-step="5"
6969
:show-second="false"
70-
:value="expirationDate"
70+
:model-value="expirationDate"
7171
type="datetime"
7272
@change="onExpirationDateChange" />
7373
<NcCheckboxRadioSwitch

src/components/SidebarTabs/TransferOwnership.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@
6969
" />
7070
<!-- eslint-enable vue/no-v-html -->
7171
<NcTextField
72+
v-model="confirmationInput"
7273
:label="t('forms', 'Confirmation text')"
73-
:value.sync="confirmationInput"
7474
:success="confirmationInput === confirmationString" />
7575

7676
<br />

src/main.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,13 @@
44
*/
55

66
import { translate, translatePlural } from '@nextcloud/l10n'
7-
import Tooltip from '@nextcloud/vue/directives/Tooltip'
87
import Vue from 'vue'
98
import Forms from './Forms.vue'
109
import router from './router.js'
1110

1211
import 'vite/modulepreload-polyfill'
1312
import '@nextcloud/dialogs/style.css'
1413

15-
Vue.directive('tooltip', Tooltip)
16-
1714
Vue.prototype.t = translate
1815
Vue.prototype.n = translatePlural
1916

0 commit comments

Comments
 (0)