feat(files): Add getter for all view configs

Signed-off-by: Christopher Ng <chrng8@gmail.com>
pull/47122/head
Christopher Ng 2024-08-07 20:52:29 +07:00
parent 86459aa5da
commit cfec6fcb1a
1 changed files with 2 additions and 0 deletions

@ -21,6 +21,8 @@ export const useViewConfigStore = function(...args) {
getters: {
getConfig: (state) => (view: ViewId): ViewConfig => state.viewConfig[view] || {},
getConfigs: (state) => (): ViewConfigs => state.viewConfig,
},
actions: {