diff --git a/apps/files/src/components/FileEntryMixin.ts b/apps/files/src/components/FileEntryMixin.ts index 06fc2d906dbb2..d3b3cdb68ce90 100644 --- a/apps/files/src/components/FileEntryMixin.ts +++ b/apps/files/src/components/FileEntryMixin.ts @@ -11,7 +11,8 @@ import { generateUrl } from '@nextcloud/router' import { showError } from '@nextcloud/dialogs' import { translate as t } from '@nextcloud/l10n' import { vOnClickOutside } from '@vueuse/components' -import Vue, { defineComponent } from 'vue' +import { extname } from 'path' +import Vue, { computed, defineComponent } from 'vue' import { action as sidebarAction } from '../actions/sidebarAction.ts' import { dataTransferToFileTree, onDropExternalFiles, onDropInternalFiles } from '../services/DropService.ts' @@ -49,8 +50,8 @@ export default defineComponent({ provide() { return { - defaultFileAction: this.defaultFileAction, - enabledFileActions: this.enabledFileActions, + defaultFileAction: computed(() => this.defaultFileAction), + enabledFileActions: computed(() => this.enabledFileActions), } },