mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
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:
parent
16cc8fb772
commit
839714bfbb
1 changed files with 7 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue