fix(files): keep reactivity when destructure store

- resolves https://github.com/nextcloud/server/issues/59941

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2026-04-27 18:32:21 +02:00 committed by backportbot[bot]
parent 16cc8fb772
commit 839714bfbb

View file

@ -108,6 +108,7 @@
import { FileType, formatFileSize } from '@nextcloud/files'
import { t } from '@nextcloud/l10n'
import { useHotKey } from '@nextcloud/vue/composables/useHotKey'
import { storeToRefs } from 'pinia'
import { defineComponent } from 'vue'
import NcDateTime from '@nextcloud/vue/components/NcDateTime'
import CustomElementRender from './CustomElementRender.vue'
@ -165,23 +166,26 @@ export default defineComponent({
fileId: currentRouteFileId,
} = useRouteParameters()
const activeStore = useActiveStore()
const {
activeFolder,
activeNode,
activeView,
} = useActiveStore()
} = storeToRefs(activeStore)
const actions = useFileActions()
return {
actions,
actionsMenuStore,
activeFolder,
activeNode,
activeView,
currentRouteFileId,
draggingStore,
isNarrow,
activeStore,
actionsMenuStore,
draggingStore,
filesStore,
renamingStore,
selectionStore,