From 4942747ff85dc8671ff7a6a42cd07a886d361b07 Mon Sep 17 00:00:00 2001 From: =?utf8?q?John=20Molakvo=C3=A6?= Date: Tue, 28 Mar 2023 12:28:49 +0200 Subject: [PATCH] fix(files): use inline NcActions MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- apps/files/src/components/FileEntry.vue | 31 ++++++++++--------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/apps/files/src/components/FileEntry.vue b/apps/files/src/components/FileEntry.vue index b0324a6ab4a..420af67f9eb 100644 --- a/apps/files/src/components/FileEntry.vue +++ b/apps/files/src/components/FileEntry.vue @@ -58,21 +58,12 @@ - + - + (a.order || 0) - (b.order || 0)) }, - enabledMenuActions() { - return actions - .filter(action => !action.inline) - }, - enabledInlineActions() { return this.enabledActions.filter(action => action?.inline?.(this.source, this.currentView)) }, + enabledMenuActions() { + return [ + ...this.enabledInlineActions, + ...actions.filter(action => !action.inline), + ] + }, + uniqueId() { return this.hashCode(this.source.source) }, @@ -305,7 +298,7 @@ export default Vue.extend({ return } // Restore default tabindex - this.$el.parentNode.style.removeProperty('display') + this.$el.parentNode.style.display = '' }, /** * When the source changes, reset the preview -- 2.39.5