Skip to content

Commit 6bcc00d

Browse files
committed
chore: manually adjust event names (update:checked to update:modelValue)
Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent 922c543 commit 6bcc00d

File tree

21 files changed

+40
-37
lines changed

21 files changed

+40
-37
lines changed

apps/files/src/components/FileEntry/FileEntryCheckbox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
:aria-label="ariaLabel"
1313
:model-value="isSelected"
1414
data-cy-files-list-row-checkbox
15-
@update:checked="onSelectionChange" />
15+
@update:modelValue="onSelectionChange" />
1616
</td>
1717
</template>
1818

apps/files/src/components/FilesListTableHeader.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
<th
88
class="files-list__column files-list__row-checkbox"
99
@keyup.esc.exact="resetSelection">
10-
<NcCheckboxRadioSwitch v-bind="selectAllBind" data-cy-files-list-selection-checkbox @update:checked="onToggleAll" />
10+
<NcCheckboxRadioSwitch
11+
v-bind="selectAllBind"
12+
data-cy-files-list-selection-checkbox
13+
@update:modelValue="onToggleAll" />
1114
</th>
1215

1316
<!-- Columns display -->

apps/files/src/components/TemplateFiller/TemplateCheckboxField.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
:id="fieldId"
1010
v-model="value"
1111
type="switch"
12-
@update:checked="input">
12+
@update:modelValue="input">
1313
{{ fieldLabel }}
1414
</NcCheckboxRadioSwitch>
1515
</div>

apps/files_sharing/src/components/NewFileRequestDialog/NewFileRequestDialogDatePassword.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
v-show="!isExpirationDateEnforced"
1919
:model-value="isExpirationDateEnforced || expirationDate !== null"
2020
:disabled="disabled || isExpirationDateEnforced"
21-
@update:checked="onToggleDeadline">
21+
@update:modelValue="onToggleDeadline">
2222
{{ t('files_sharing', 'Set a submission expiration date') }}
2323
</NcCheckboxRadioSwitch>
2424

@@ -52,7 +52,7 @@
5252
v-show="!isPasswordEnforced"
5353
:model-value="isPasswordEnforced || password !== null"
5454
:disabled="disabled || isPasswordEnforced"
55-
@update:checked="onTogglePassword">
55+
@update:modelValue="onTogglePassword">
5656
{{ t('files_sharing', 'Set a password') }}
5757
</NcCheckboxRadioSwitch>
5858

apps/files_sharing/src/components/SharingEntryLink.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ export default {
839839
840840
/**
841841
* Uncheck password protection
842-
* We need this method because @update:checked
842+
* We need this method because @update:modelValue
843843
* is ran simultaneously as @uncheck, so we
844844
* cannot ensure data is up-to-date
845845
*/

apps/files_sharing/src/views/SharingDetailsTab.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
name="sharing_permission_radio"
3232
type="radio"
3333
button-variant-grouped="vertical"
34-
@update:checked="toggleCustomPermissions">
34+
@update:modelValue="toggleCustomPermissions">
3535
{{ t('files_sharing', 'View only') }}
3636
<template #icon>
3737
<ViewIcon :size="20" />
@@ -45,7 +45,7 @@
4545
name="sharing_permission_radio"
4646
type="radio"
4747
button-variant-grouped="vertical"
48-
@update:checked="toggleCustomPermissions">
48+
@update:modelValue="toggleCustomPermissions">
4949
<template v-if="allowsFileDrop">
5050
{{ t('files_sharing', 'Allow upload and editing') }}
5151
</template>
@@ -65,7 +65,7 @@
6565
name="sharing_permission_radio"
6666
type="radio"
6767
button-variant-grouped="vertical"
68-
@update:checked="toggleCustomPermissions">
68+
@update:modelValue="toggleCustomPermissions">
6969
{{ t('files_sharing', 'File request') }}
7070
<small class="subline">{{ t('files_sharing', 'Upload only') }}</small>
7171
<template #icon>
@@ -80,7 +80,7 @@
8080
name="sharing_permission_radio"
8181
type="radio"
8282
button-variant-grouped="vertical"
83-
@update:checked="expandCustomPermissions">
83+
@update:modelValue="expandCustomPermissions">
8484
{{ t('files_sharing', 'Custom permissions') }}
8585
<small class="subline">{{ customPermissionsList }}</small>
8686
<template #icon>
@@ -156,7 +156,7 @@
156156
<NcCheckboxRadioSwitch
157157
v-if="canTogglePasswordProtectedByTalkAvailable"
158158
v-model="isPasswordProtectedByTalk"
159-
@update:checked="onPasswordProtectedByTalkChange">
159+
@update:modelValue="onPasswordProtectedByTalkChange">
160160
{{ t('files_sharing', 'Video verification') }}
161161
</NcCheckboxRadioSwitch>
162162
<NcCheckboxRadioSwitch v-model="hasExpirationDate" :disabled="isExpiryDateEnforced">
@@ -179,7 +179,7 @@
179179
v-if="isPublicShare"
180180
v-model="share.hideDownload"
181181
:disabled="canChangeHideDownload"
182-
@update:checked="queueUpdate('hideDownload')">
182+
@update:modelValue="queueUpdate('hideDownload')">
183183
{{ t('files_sharing', 'Hide download') }}
184184
</NcCheckboxRadioSwitch>
185185
<NcCheckboxRadioSwitch

apps/settings/src/components/AdminAI.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
:value="provider.id"
7676
name="text2image_provider"
7777
type="radio"
78-
@update:checked="saveChanges">
78+
@update:modelValue="saveChanges">
7979
{{ provider.name }}
8080
</NcCheckboxRadioSwitch>
8181
</template>

apps/settings/src/components/AdminSettingsSharingForm.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,23 +106,23 @@
106106
name="excludeGroups"
107107
value="no"
108108
type="radio"
109-
@update:checked="onUpdateExcludeGroups">
109+
@update:modelValue="onUpdateExcludeGroups">
110110
{{ t('settings', 'Allow sharing for everyone (default)') }}
111111
</NcCheckboxRadioSwitch>
112112
<NcCheckboxRadioSwitch
113113
v-model="settings.excludeGroups"
114114
name="excludeGroups"
115115
value="yes"
116116
type="radio"
117-
@update:checked="onUpdateExcludeGroups">
117+
@update:modelValue="onUpdateExcludeGroups">
118118
{{ t('settings', 'Exclude some groups from sharing') }}
119119
</NcCheckboxRadioSwitch>
120120
<NcCheckboxRadioSwitch
121121
v-model="settings.excludeGroups"
122122
name="excludeGroups"
123123
value="allow"
124124
type="radio"
125-
@update:checked="onUpdateExcludeGroups">
125+
@update:modelValue="onUpdateExcludeGroups">
126126
{{ t('settings', 'Limit sharing to some groups') }}
127127
</NcCheckboxRadioSwitch>
128128
<div v-show="settings.excludeGroups !== 'no'" class="sharing__labeled-entry sharing__input">

apps/settings/src/components/AppStoreSidebar/AppDetailsTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
v-if="app.canUnInstall"
105105
:model-value="removeData"
106106
:disabled="installing || isLoading || !defaultDeployDaemonAccessible"
107-
@update:checked="toggleRemoveData">
107+
@update:modelValue="toggleRemoveData">
108108
{{ t('settings', 'Delete data on remove') }}
109109
</NcCheckboxRadioSwitch>
110110
</div>

apps/settings/src/components/AuthToken.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<NcActionCheckbox
4646
v-if="canChangeScope"
4747
:model-value="token.scope.filesystem"
48-
@update:checked="updateFileSystemScope">
48+
@update:modelValue="updateFileSystemScope">
4949
<!-- TODO: add text/longtext with some description -->
5050
{{ t('settings', 'Allow filesystem access') }}
5151
</NcActionCheckbox>

0 commit comments

Comments
 (0)