diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-11-14 01:01:38 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-11-15 12:17:00 +0100 |
commit | b1df25af63653e6157b0a3ea40b153b60c5f5ad5 (patch) | |
tree | 7d4d7fdfaada6ba8ae7f8f6eb79dfce18718fcd8 | |
parent | 8fd7210aaa5b025984e529e825b2e338cafecb3c (diff) | |
download | nextcloud-server-b1df25af63653e6157b0a3ea40b153b60c5f5ad5.tar.gz nextcloud-server-b1df25af63653e6157b0a3ea40b153b60c5f5ad5.zip |
fix(files): Make injected actions reactive
Provided values are not reactive by default and by design,
we must need computed to make them reactive.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
-rw-r--r-- | apps/files/src/components/FileEntryMixin.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/src/components/FileEntryMixin.ts b/apps/files/src/components/FileEntryMixin.ts index e5d6a27e96c..4a4e4f497b5 100644 --- a/apps/files/src/components/FileEntryMixin.ts +++ b/apps/files/src/components/FileEntryMixin.ts @@ -13,7 +13,7 @@ import { generateUrl } from '@nextcloud/router' import { isPublicShare } from '@nextcloud/sharing/public' import { vOnClickOutside } from '@vueuse/components' import { extname } from 'path' -import Vue, { defineComponent } from 'vue' +import Vue, { computed, defineComponent } from 'vue' import { action as sidebarAction } from '../actions/sidebarAction.ts' import { getDragAndDropPreview } from '../utils/dragUtils.ts' @@ -52,8 +52,8 @@ export default defineComponent({ provide() { return { - defaultFileAction: this.defaultFileAction, - enabledFileActions: this.enabledFileActions, + defaultFileAction: computed(() => this.defaultFileAction), + enabledFileActions: computed(() => this.enabledFileActions), } }, |