feat: select item on file list after navigating back (#5329)

This commit is contained in:
Ramires Viana
2025-07-27 08:03:00 -03:00
committed by GitHub
parent 25e47c3ce8
commit cbeec6d225
13 changed files with 143 additions and 79 deletions

View File

@@ -9,6 +9,7 @@ export const useFileStore = defineStore("file", {
selected: number[];
multiple: boolean;
isFiles: boolean;
preselect: string | null;
} => ({
req: null,
oldReq: null,
@@ -16,6 +17,7 @@ export const useFileStore = defineStore("file", {
selected: [],
multiple: false,
isFiles: false,
preselect: null,
}),
getters: {
selectedCount: (state) => state.selected.length,