feat(files): Add getter for all view configs

Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
Christopher Ng 2024-08-07 20:52:29 -07:00
parent 86459aa5da
commit cfec6fcb1a

View file

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