Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(files): Add getter for all view configs
Signed-off-by: Christopher Ng <[email protected]>
  • Loading branch information
Pytal committed Aug 8, 2024
commit cfec6fcb1a9eaa57bef5bba757b5b9dbda387c96
2 changes: 2 additions & 0 deletions apps/files/src/store/viewConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export const useViewConfigStore = function(...args) {

getters: {
getConfig: (state) => (view: ViewId): ViewConfig => state.viewConfig[view] || {},

getConfigs: (state) => (): ViewConfigs => state.viewConfig,
},

actions: {
Expand Down