9292 <td
9393 v-for =" column in columns"
9494 :key =" column.id"
95- :class =" `files-list__row-${currentView .id}-${column.id}`"
95+ :class =" `files-list__row-${activeView .id}-${column.id}`"
9696 class =" files-list__row-column-custom"
9797 :data-cy-files-list-row-column-custom =" column.id"
9898 @click =" openDetailsIfAvailable" >
9999 <CustomElementRender
100- :current-view =" currentView "
100+ :current-view =" activeView "
101101 :render =" column.render"
102102 :source =" source" />
103103 </td >
@@ -116,9 +116,8 @@ import FileEntryCheckbox from './FileEntry/FileEntryCheckbox.vue'
116116import FileEntryName from ' ./FileEntry/FileEntryName.vue'
117117import FileEntryPreview from ' ./FileEntry/FileEntryPreview.vue'
118118import { useFileListWidth } from ' ../composables/useFileListWidth.ts'
119- import { useNavigation } from ' ../composables/useNavigation.ts'
120- import { useRouteParameters } from ' ../composables/useRouteParameters.ts'
121119import { useActionsMenuStore } from ' ../store/actionsmenu.ts'
120+ import { useActiveStore } from ' ../store/active.ts'
122121import { useDragAndDropStore } from ' ../store/dragging.ts'
123122import { useFilesStore } from ' ../store/files.ts'
124123import { useRenamingStore } from ' ../store/renaming.ts'
@@ -160,24 +159,23 @@ export default defineComponent({
160159 const renamingStore = useRenamingStore ()
161160 const selectionStore = useSelectionStore ()
162161 const filesListWidth = useFileListWidth ()
163- // The file list is guaranteed to be only shown with active view - thus we can set the `loaded` flag
164- const { currentView } = useNavigation (true )
162+
165163 const {
166- directory : currentDir,
167- fileId : currentFileId,
168- } = useRouteParameters ()
164+ activeFolder,
165+ activeNode,
166+ activeView,
167+ } = useActiveStore ()
169168
170169 return {
171170 actionsMenuStore ,
171+ activeFolder ,
172+ activeNode ,
173+ activeView ,
172174 draggingStore ,
175+ filesListWidth ,
173176 filesStore ,
174177 renamingStore ,
175178 selectionStore ,
176-
177- currentDir ,
178- currentFileId ,
179- currentView ,
180- filesListWidth ,
181179 }
182180 },
183181
@@ -208,7 +206,7 @@ export default defineComponent({
208206 if (this .filesListWidth < 512 || this .compact ) {
209207 return []
210208 }
211- return this .currentView .columns || []
209+ return this .activeView .columns || []
212210 },
213211
214212 mime() {
@@ -281,7 +279,12 @@ export default defineComponent({
281279 return
282280 }
283281
284- this .defaultFileAction ?.exec (this .source , this .currentView , this .currentDir )
282+ this .defaultFileAction ?.exec ({
283+ nodes: [this .source ],
284+ folder: this .activeFolder ! ,
285+ contents: this .nodes ,
286+ view: this .activeView ! ,
287+ })
285288 },
286289 },
287290})
0 commit comments