diff options
author | Louis Chemineau <louis@chmn.me> | 2022-01-20 12:21:43 +0100 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2022-01-21 13:13:52 +0100 |
commit | e101882b9205bf33aa853dfd97753f65e724ff9f (patch) | |
tree | 5051da8a3903531fa43ded2b2ce27c59fe595a83 /apps/files_sharing | |
parent | ed729c65de08c94fc021a9a46820dbd6be0e3743 (diff) | |
download | nextcloud-server-e101882b9205bf33aa853dfd97753f65e724ff9f.tar.gz nextcloud-server-e101882b9205bf33aa853dfd97753f65e724ff9f.zip |
Auto fix warnings
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/files_sharing')
11 files changed, 18 insertions, 31 deletions
diff --git a/apps/files_sharing/src/components/SharingEntry.vue b/apps/files_sharing/src/components/SharingEntry.vue index d5d7f62a832..2d29aaf1dc6 100644 --- a/apps/files_sharing/src/components/SharingEntry.vue +++ b/apps/files_sharing/src/components/SharingEntry.vue @@ -39,14 +39,12 @@ <span>{{ share.status.message || '' }}</span> </p> </component> - <Actions - menu-align="right" + <Actions menu-align="right" class="sharing-entry__actions" @close="onMenuClose"> <template v-if="share.canEdit"> <!-- edit permission --> - <ActionCheckbox - ref="canEdit" + <ActionCheckbox ref="canEdit" :checked.sync="canEdit" :value="permissionsEdit" :disabled="saving || !canSetEdit"> @@ -54,8 +52,7 @@ </ActionCheckbox> <!-- create permission --> - <ActionCheckbox - v-if="isFolder" + <ActionCheckbox v-if="isFolder" ref="canCreate" :checked.sync="canCreate" :value="permissionsCreate" @@ -64,8 +61,7 @@ </ActionCheckbox> <!-- delete permission --> - <ActionCheckbox - v-if="isFolder" + <ActionCheckbox v-if="isFolder" ref="canDelete" :checked.sync="canDelete" :value="permissionsDelete" @@ -74,8 +70,7 @@ </ActionCheckbox> <!-- reshare permission --> - <ActionCheckbox - v-if="config.isResharingAllowed" + <ActionCheckbox v-if="config.isResharingAllowed" ref="canReshare" :checked.sync="canReshare" :value="permissionsShare" @@ -112,8 +107,7 @@ <!-- note --> <template v-if="canHaveNote"> - <ActionCheckbox - :checked.sync="hasNote" + <ActionCheckbox :checked.sync="hasNote" :disabled="saving" @uncheck="queueUpdate('note')"> {{ t('files_sharing', 'Note to recipient') }} diff --git a/apps/files_sharing/src/components/SharingEntryInherited.vue b/apps/files_sharing/src/components/SharingEntryInherited.vue index b8b5674efc9..72a513cfb1f 100644 --- a/apps/files_sharing/src/components/SharingEntryInherited.vue +++ b/apps/files_sharing/src/components/SharingEntryInherited.vue @@ -21,13 +21,11 @@ --> <template> - <SharingEntrySimple - :key="share.id" + <SharingEntrySimple :key="share.id" class="sharing-entry__inherited" :title="share.shareWithDisplayName"> <template #avatar> - <Avatar - :user="share.shareWith" + <Avatar :user="share.shareWith" :display-name="share.shareWithDisplayName" class="sharing-entry__avatar" tooltip-message="" /> diff --git a/apps/files_sharing/src/components/SharingEntryInternal.vue b/apps/files_sharing/src/components/SharingEntryInternal.vue index e96a85340a6..73b86d26180 100644 --- a/apps/files_sharing/src/components/SharingEntryInternal.vue +++ b/apps/files_sharing/src/components/SharingEntryInternal.vue @@ -1,7 +1,6 @@ <template> - <SharingEntrySimple - class="sharing-entry__internal" + <SharingEntrySimple class="sharing-entry__internal" :title="t('files_sharing', 'Internal link')" :subtitle="internalLinkSubtitle"> <template #avatar> diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue index af2ea4cc6e5..5a49a1d4976 100644 --- a/apps/files_sharing/src/components/SharingEntryLink.vue +++ b/apps/files_sharing/src/components/SharingEntryLink.vue @@ -133,8 +133,7 @@ <template v-if="share"> <template v-if="share.canEdit && canReshare"> <!-- Custom Label --> - <ActionInput - ref="label" + <ActionInput ref="label" v-tooltip.auto="{ content: errors.label, show: errors.label, @@ -185,8 +184,7 @@ {{ t('files_sharing', 'Allow editing') }} </ActionCheckbox> - <ActionCheckbox - :checked.sync="share.hideDownload" + <ActionCheckbox :checked.sync="share.hideDownload" :disabled="saving" @change="queueUpdate('hideDownload')"> {{ t('files_sharing', 'Hide download') }} diff --git a/apps/files_sharing/src/models/Share.js b/apps/files_sharing/src/models/Share.js index 21e7e34c5d1..87c2fec86f2 100644 --- a/apps/files_sharing/src/models/Share.js +++ b/apps/files_sharing/src/models/Share.js @@ -27,7 +27,7 @@ export default class Share { - _share; + _share /** * Create the share object diff --git a/apps/files_sharing/src/services/ExternalLinkActions.js b/apps/files_sharing/src/services/ExternalLinkActions.js index c4091a5524c..06cf97ed255 100644 --- a/apps/files_sharing/src/services/ExternalLinkActions.js +++ b/apps/files_sharing/src/services/ExternalLinkActions.js @@ -22,7 +22,7 @@ export default class ExternalLinkActions { - _state; + _state constructor() { // init empty state diff --git a/apps/files_sharing/src/services/ExternalShareActions.js b/apps/files_sharing/src/services/ExternalShareActions.js index 571989b2249..5d64c97ba70 100644 --- a/apps/files_sharing/src/services/ExternalShareActions.js +++ b/apps/files_sharing/src/services/ExternalShareActions.js @@ -22,7 +22,7 @@ export default class ExternalShareActions { - _state; + _state constructor() { // init empty state diff --git a/apps/files_sharing/src/services/ShareSearch.js b/apps/files_sharing/src/services/ShareSearch.js index e3dbc61f8c3..1a9737cbfba 100644 --- a/apps/files_sharing/src/services/ShareSearch.js +++ b/apps/files_sharing/src/services/ShareSearch.js @@ -22,7 +22,7 @@ export default class ShareSearch { - _state; + _state constructor() { // init empty state diff --git a/apps/files_sharing/src/services/TabSections.js b/apps/files_sharing/src/services/TabSections.js index cec046cd3ce..d266909b6cc 100644 --- a/apps/files_sharing/src/services/TabSections.js +++ b/apps/files_sharing/src/services/TabSections.js @@ -22,7 +22,7 @@ export default class TabSections { - _sections; + _sections constructor() { this._sections = [] diff --git a/apps/files_sharing/src/views/SharingInherited.vue b/apps/files_sharing/src/views/SharingInherited.vue index 1911e05579f..3a3e4b633e2 100644 --- a/apps/files_sharing/src/views/SharingInherited.vue +++ b/apps/files_sharing/src/views/SharingInherited.vue @@ -23,8 +23,7 @@ <template> <ul id="sharing-inherited-shares"> <!-- Main collapsible entry --> - <SharingEntrySimple - class="sharing-entry__inherited" + <SharingEntrySimple class="sharing-entry__inherited" :title="mainTitle" :subtitle="subTitle"> <template #avatar> diff --git a/apps/files_sharing/src/views/SharingTab.vue b/apps/files_sharing/src/views/SharingTab.vue index 62d442191bc..d1174218b08 100644 --- a/apps/files_sharing/src/views/SharingTab.vue +++ b/apps/files_sharing/src/views/SharingTab.vue @@ -33,8 +33,7 @@ <!-- shared with me information --> <SharingEntrySimple v-if="isSharedWithMe" v-bind="sharedWithMe" class="sharing-entry__reshare"> <template #avatar> - <Avatar - :user="sharedWithMe.user" + <Avatar :user="sharedWithMe.user" :display-name="sharedWithMe.displayName" class="sharing-entry__avatar" tooltip-message="" /> |