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 | |
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')
-rw-r--r-- | apps/files/src/components/SidebarTab.vue | 3 | ||||
-rw-r--r-- | apps/files/src/components/TransferOwnershipDialogue.vue | 3 | ||||
-rw-r--r-- | apps/files/src/services/Sidebar.js | 2 | ||||
-rw-r--r-- | apps/files/src/views/Sidebar.vue | 9 | ||||
-rw-r--r-- | apps/files/src/views/TemplatePicker.vue | 6 |
5 files changed, 8 insertions, 15 deletions
diff --git a/apps/files/src/components/SidebarTab.vue b/apps/files/src/components/SidebarTab.vue index bead5cad1ef..ad80f91d431 100644 --- a/apps/files/src/components/SidebarTab.vue +++ b/apps/files/src/components/SidebarTab.vue @@ -21,8 +21,7 @@ - --> <template> - <AppSidebarTab - :id="id" + <AppSidebarTab :id="id" ref="tab" :name="name" :icon="icon" diff --git a/apps/files/src/components/TransferOwnershipDialogue.vue b/apps/files/src/components/TransferOwnershipDialogue.vue index 665af6fed08..89c6e2f60e4 100644 --- a/apps/files/src/components/TransferOwnershipDialogue.vue +++ b/apps/files/src/components/TransferOwnershipDialogue.vue @@ -37,8 +37,7 @@ <label for="targetUser"> <span>{{ t('files', 'New owner') }}</span> </label> - <Multiselect - id="targetUser" + <Multiselect id="targetUser" v-model="selectedUser" :options="formatedUserSuggestions" :multiple="false" diff --git a/apps/files/src/services/Sidebar.js b/apps/files/src/services/Sidebar.js index e28dacb6b21..e87ee71a4b1 100644 --- a/apps/files/src/services/Sidebar.js +++ b/apps/files/src/services/Sidebar.js @@ -22,7 +22,7 @@ export default class Sidebar { - _state; + _state constructor() { // init empty state diff --git a/apps/files/src/views/Sidebar.vue b/apps/files/src/views/Sidebar.vue index ec41240e3f2..a83cb8640eb 100644 --- a/apps/files/src/views/Sidebar.vue +++ b/apps/files/src/views/Sidebar.vue @@ -21,8 +21,7 @@ --> <template> - <AppSidebar - v-if="file" + <AppSidebar v-if="file" ref="sidebar" v-bind="appSidebar" :force-menu="true" @@ -46,8 +45,7 @@ <template v-if="fileInfo" #secondary-actions> <!-- TODO: create proper api for apps to register actions And inject themselves here. --> - <ActionButton - v-if="isSystemTagsEnabled" + <ActionButton v-if="isSystemTagsEnabled" :close-after-click="true" icon="icon-tag" @click="toggleTags"> @@ -63,8 +61,7 @@ <!-- If fileInfo fetch is complete, render tabs --> <template v-for="tab in tabs" v-else-if="fileInfo"> <!-- Hide them if we're loading another file but keep them mounted --> - <SidebarTab - v-if="tab.enabled(fileInfo)" + <SidebarTab v-if="tab.enabled(fileInfo)" v-show="!loading" :id="tab.id" :key="tab.id" diff --git a/apps/files/src/views/TemplatePicker.vue b/apps/files/src/views/TemplatePicker.vue index 4e0fc8c7a54..ade41a5416a 100644 --- a/apps/files/src/views/TemplatePicker.vue +++ b/apps/files/src/views/TemplatePicker.vue @@ -33,13 +33,11 @@ <!-- Templates list --> <ul class="templates-picker__list"> - <TemplatePreview - v-bind="emptyTemplate" + <TemplatePreview v-bind="emptyTemplate" :checked="checked === emptyTemplate.fileid" @check="onCheck" /> - <TemplatePreview - v-for="template in provider.templates" + <TemplatePreview v-for="template in provider.templates" :key="template.fileid" v-bind="template" :checked="checked === template.fileid" |