Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/comments/src/components/Comment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
:contenteditable="!loading"
:label="editor ? t('comments', 'New comment') : t('comments', 'Edit comment')"
:placeholder="t('comments', 'Write a comment …')"
:value="localMessage"
:model-value="localMessage"
:user-data="userData"
aria-describedby="tab-comments__editor-description"
@update:value="updateLocalMessage"
Expand Down
3 changes: 0 additions & 3 deletions apps/dashboard/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@

import { getCSPNonce } from '@nextcloud/auth'
import { t } from '@nextcloud/l10n'
import VTooltip from '@nextcloud/vue/directives/Tooltip'
import Vue from 'vue'
import DashboardApp from './DashboardApp.vue'

__webpack_nonce__ = getCSPNonce()

Vue.directive('Tooltip', VTooltip)

Vue.prototype.t = t

const Dashboard = Vue.extend(DashboardApp)
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/src/components/AbsenceForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export default {
/**
* Debounce getSuggestions
*
* @param {...*} args the arguments
* @param {[string]} args - The arguments
*/
debounceGetSuggestions: debounce(function(...args) {
this.getSuggestions(...args)
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/src/components/ExampleContactSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<template>
<div class="example-contact-settings">
<NcCheckboxRadioSwitch
:checked="enableDefaultContact"
:model-value="enableDefaultContact"
type="switch"
@update:model-value="updateEnableDefaultContact">
{{ t('dav', "Add example contact to user's address book when they first log in") }}
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/src/components/ExampleEventSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<template>
<div class="example-event-settings">
<NcCheckboxRadioSwitch
:checked="createExampleEvent"
:model-value="createExampleEvent"
:disabled="savingConfig"
type="switch"
@update:model-value="updateCreateExampleEvent">
Expand Down
28 changes: 14 additions & 14 deletions apps/federatedfilesharing/src/components/AdminSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,32 @@
:description="t('federatedfilesharing', 'Adjust how people can share between servers. This includes shares between people on this server as well if they are using federated sharing.')"
:doc-url="sharingFederatedDocUrl">
<NcCheckboxRadioSwitch
v-model="outgoingServer2serverShareEnabled"
type="switch"
:checked.sync="outgoingServer2serverShareEnabled"
@update:checked="update('outgoing_server2server_share_enabled', outgoingServer2serverShareEnabled)">
@update:modelValue="update('outgoing_server2server_share_enabled', outgoingServer2serverShareEnabled)">
{{ t('federatedfilesharing', 'Allow people on this server to send shares to other servers (this option also allows WebDAV access to public shares)') }}
</NcCheckboxRadioSwitch>

<NcCheckboxRadioSwitch
v-model="incomingServer2serverShareEnabled"
type="switch"
:checked.sync="incomingServer2serverShareEnabled"
@update:checked="update('incoming_server2server_share_enabled', incomingServer2serverShareEnabled)">
@update:modelValue="update('incoming_server2server_share_enabled', incomingServer2serverShareEnabled)">
{{ t('federatedfilesharing', 'Allow people on this server to receive shares from other servers') }}
</NcCheckboxRadioSwitch>

<NcCheckboxRadioSwitch
v-if="federatedGroupSharingSupported"
v-model="outgoingServer2serverGroupShareEnabled"
type="switch"
:checked.sync="outgoingServer2serverGroupShareEnabled"
@update:checked="update('outgoing_server2server_group_share_enabled', outgoingServer2serverGroupShareEnabled)">
@update:modelValue="update('outgoing_server2server_group_share_enabled', outgoingServer2serverGroupShareEnabled)">
{{ t('federatedfilesharing', 'Allow people on this server to send shares to groups on other servers') }}
</NcCheckboxRadioSwitch>

<NcCheckboxRadioSwitch
v-if="federatedGroupSharingSupported"
v-model="incomingServer2serverGroupShareEnabled"
type="switch"
:checked.sync="incomingServer2serverGroupShareEnabled"
@update:checked="update('incoming_server2server_group_share_enabled', incomingServer2serverGroupShareEnabled)">
@update:modelValue="update('incoming_server2server_group_share_enabled', incomingServer2serverGroupShareEnabled)">
{{ t('federatedfilesharing', 'Allow people on this server to receive group shares from other servers') }}
</NcCheckboxRadioSwitch>

Expand All @@ -42,17 +42,17 @@

<NcCheckboxRadioSwitch
type="switch"
:checked="lookupServerEnabled"
:model-value="lookupServerEnabled"
disabled
@update:checked="showLookupServerConfirmation">
@update:modelValue="showLookupServerConfirmation">
{{ t('federatedfilesharing', 'Search global and public address book for people') }}
</NcCheckboxRadioSwitch>

<NcCheckboxRadioSwitch
type="switch"
:checked="lookupServerUploadEnabled"
:model-value="lookupServerUploadEnabled"
disabled
@update:checked="showLookupServerUploadConfirmation">
@update:modelValue="showLookupServerUploadConfirmation">
{{ t('federatedfilesharing', 'Allow people to publish their data to a global and public address book') }}
</NcCheckboxRadioSwitch>
</fieldset>
Expand All @@ -63,9 +63,9 @@
{{ t('federatedfilesharing', 'Trusted federation') }}
</h3>
<NcCheckboxRadioSwitch
v-model="federatedTrustedShareAutoAccept"
type="switch"
:checked.sync="federatedTrustedShareAutoAccept"
@update:checked="update('federatedTrustedShareAutoAccept', federatedTrustedShareAutoAccept)">
@update:modelValue="update('federatedTrustedShareAutoAccept', federatedTrustedShareAutoAccept)">
{{ t('federatedfilesharing', 'Automatically accept shares from trusted federated accounts and groups by default') }}
</NcCheckboxRadioSwitch>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class="federated-cloud__cloud-id"
readonly
:label="t('federatedfilesharing', 'Your Federated Cloud ID')"
:value="cloudId"
:model-value="cloudId"
:success="isCopied"
show-trailing-button
:trailing-button-label="copyLinkTooltip"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ const buttons = computed(() => [
</p>
<NcPasswordField
v-if="passwordRequired"
v-model="password"
class="remote-share-dialog__password"
:label="t('federatedfilesharing', 'Remote share password')"
:value.sync="password" />
:label="t('federatedfilesharing', 'Remote share password')" />
</NcDialog>
</template>

Expand Down
4 changes: 2 additions & 2 deletions apps/files/src/components/FileEntry/FileEntryCheckbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
<NcCheckboxRadioSwitch
v-else
:aria-label="ariaLabel"
:checked="isSelected"
:model-value="isSelected"
data-cy-files-list-row-checkbox
@update:checked="onSelectionChange" />
@update:modelValue="onSelectionChange" />
</td>
</template>

Expand Down
2 changes: 1 addition & 1 deletion apps/files/src/components/FileEntry/FileEntryName.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
@submit.prevent.stop="onRename">
<NcTextField
ref="renameInput"
v-model="newName"
:label="renameLabel"
:autofocus="true"
:minlength="1"
:required="true"
:value.sync="newName"
enterkeyhint="done"
@keyup.esc="stopRenaming" />
</form>
Expand Down
5 changes: 4 additions & 1 deletion apps/files/src/components/FilesListTableHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
<th
class="files-list__column files-list__row-checkbox"
@keyup.esc.exact="resetSelection">
<NcCheckboxRadioSwitch v-bind="selectAllBind" data-cy-files-list-selection-checkbox @update:checked="onToggleAll" />
<NcCheckboxRadioSwitch
v-bind="selectAllBind"
data-cy-files-list-selection-checkbox
@update:modelValue="onToggleAll" />
</th>

<!-- Columns display -->
Expand Down
4 changes: 2 additions & 2 deletions apps/files/src/components/NewNodeDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
@submit.prevent="emit('close', localDefaultName)">
<NcTextField
ref="nameInput"
v-model="localDefaultName"
data-cy-files-new-node-dialog-input
:error="validity !== ''"
:helper-text="validity"
:label="label"
:value.sync="localDefaultName" />
:label="label" />

<!-- Hidden file warning -->
<NcNoteCard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<div class="template-field__checkbox">
<NcCheckboxRadioSwitch
:id="fieldId"
:checked.sync="value"
v-model="value"
type="switch"
@update:checked="input">
@update:modelValue="input">
{{ fieldLabel }}
</NcCheckboxRadioSwitch>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

<NcTextField
:id="fieldId"
v-model="value"
type="text"
:value.sync="value"
:label="fieldLabel"
:label-outside="true"
:placeholder="field.content"
Expand Down
8 changes: 4 additions & 4 deletions apps/files_external/src/views/CredentialsDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,25 @@
<!-- Login -->
<NcTextField
ref="login"
v-model="login"
class="external-storage-auth__login"
data-cy-external-storage-auth-dialog-login
:label="t('files_external', 'Login')"
:placeholder="t('files_external', 'Enter the storage login')"
minlength="2"
name="login"
required
:value.sync="login" />
required />

<!-- Password -->
<NcPasswordField
ref="password"
v-model="password"
class="external-storage-auth__password"
data-cy-external-storage-auth-dialog-password
:label="t('files_external', 'Password')"
:placeholder="t('files_external', 'Enter the storage password')"
name="password"
required
:value.sync="password" />
required />
</NcDialog>
</template>

Expand Down
4 changes: 2 additions & 2 deletions apps/files_sharing/src/components/FileListFilterAccount.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
</template>
<NcActionInput
v-if="availableAccounts.length > 1"
v-model="accountFilter"
:label="t('files_sharing', 'Filter accounts')"
:label-outside="false"
:show-trailing-button="false"
type="search"
:value.sync="accountFilter" />
type="search" />
<NcActionButton
v-for="account of shownAccounts"
:key="account.id"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
<legend>{{ t('files_sharing', 'When should the request expire?') }}</legend>
<NcCheckboxRadioSwitch
v-show="!isExpirationDateEnforced"
:checked="isExpirationDateEnforced || expirationDate !== null"
:model-value="isExpirationDateEnforced || expirationDate !== null"
:disabled="disabled || isExpirationDateEnforced"
@update:checked="onToggleDeadline">
@update:modelValue="onToggleDeadline">
{{ t('files_sharing', 'Set a submission expiration date') }}
</NcCheckboxRadioSwitch>

Expand All @@ -33,7 +33,7 @@
:min="minDate"
:placeholder="t('files_sharing', 'Select a date')"
:required="defaultExpireDateEnforced"
:value="expirationDate"
:model-value="expirationDate"
name="expirationDate"
type="date"
@input="$emit('update:expirationDate', $event)" />
Expand All @@ -50,9 +50,9 @@
<legend>{{ t('files_sharing', 'What password should be used for the request?') }}</legend>
<NcCheckboxRadioSwitch
v-show="!isPasswordEnforced"
:checked="isPasswordEnforced || password !== null"
:model-value="isPasswordEnforced || password !== null"
:disabled="disabled || isPasswordEnforced"
@update:checked="onTogglePassword">
@update:modelValue="onTogglePassword">
{{ t('files_sharing', 'Set a password') }}
</NcCheckboxRadioSwitch>

Expand All @@ -64,7 +64,7 @@
:label="t('files_sharing', 'Password')"
:placeholder="t('files_sharing', 'Enter a valid password')"
:required="enforcePasswordForPublicLink"
:value="password"
:model-value="password"
name="password"
@update:value="$emit('update:password', $event)" />
<NcButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<!-- Copy share link -->
<NcInputField
ref="clipboard"
:value="shareLink"
:model-value="shareLink"
:label="t('files_sharing', 'Share link')"
:readonly="true"
:show-trailing-button="true"
Expand All @@ -30,7 +30,7 @@
<template v-if="isShareByMailEnabled">
<!-- Email share-->
<NcTextField
:value.sync="email"
v-model="email"
:label="t('files_sharing', 'Send link via email')"
:placeholder="t('files_sharing', 'Enter an email address or paste a list')"
data-cy-file-request-dialog-fieldset="email"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{{ t('files_sharing', 'What are you requesting?') }}
</legend>
<NcTextField
:value="label"
:model-value="label"
:disabled="disabled"
:label="t('files_sharing', 'Request subject')"
:placeholder="t('files_sharing', 'Birthday party photos, History assignment…')"
Expand All @@ -26,7 +26,7 @@
{{ t('files_sharing', 'Where should these files go?') }}
</legend>
<NcTextField
:value="destination"
:model-value="destination"
:disabled="disabled"
:label="t('files_sharing', 'Upload destination')"
:minlength="2/* cannot share root */"
Expand Down Expand Up @@ -56,7 +56,7 @@
{{ t('files_sharing', 'Add a note') }}
</legend>
<NcTextArea
:value="note"
:model-value="note"
:disabled="disabled"
:label="t('files_sharing', 'Note for recipient')"
:placeholder="t('files_sharing', 'Add a note to help people understand what you are requesting.')"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class="share-folder__picker"
type="text"
:label="t('files_sharing', 'Set default folder for accepted shares')"
:value="readableDirectory"
:model-value="readableDirectory"
@click.prevent="pickFolder" />

<!-- Show reset button if folder is different -->
Expand Down
Loading
Loading