File tree Expand file tree Collapse file tree
apps/files/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 108108import { FileType , formatFileSize } from ' @nextcloud/files'
109109import { t } from ' @nextcloud/l10n'
110110import { useHotKey } from ' @nextcloud/vue/composables/useHotKey'
111+ import { storeToRefs } from ' pinia'
111112import { defineComponent } from ' vue'
112113import NcDateTime from ' @nextcloud/vue/components/NcDateTime'
113114import CustomElementRender from ' ./CustomElementRender.vue'
@@ -165,23 +166,26 @@ export default defineComponent({
165166 fileId : currentRouteFileId,
166167 } = useRouteParameters ()
167168
169+ const activeStore = useActiveStore ()
168170 const {
169171 activeFolder,
170172 activeNode,
171173 activeView,
172- } = useActiveStore ( )
174+ } = storeToRefs ( activeStore )
173175
174176 const actions = useFileActions ()
175177
176178 return {
177179 actions ,
178- actionsMenuStore ,
179180 activeFolder ,
180181 activeNode ,
181182 activeView ,
182183 currentRouteFileId ,
183- draggingStore ,
184184 isNarrow ,
185+
186+ activeStore ,
187+ actionsMenuStore ,
188+ draggingStore ,
185189 filesStore ,
186190 renamingStore ,
187191 selectionStore ,
You can’t perform that action at this time.
0 commit comments