Skip to content

Commit

Permalink
feat(files): Add getter for all view configs
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed Aug 8, 2024
1 parent a180cd9 commit 893a46c
Showing 1 changed file with 2 additions and 0 deletions.
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

0 comments on commit 893a46c

Please sign in to comment.