From cfec6fcb1a9eaa57bef5bba757b5b9dbda387c96 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Wed, 7 Aug 2024 20:52:29 -0700 Subject: feat(files): Add getter for all view configs Signed-off-by: Christopher Ng --- apps/files/src/store/viewConfig.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/files') diff --git a/apps/files/src/store/viewConfig.ts b/apps/files/src/store/viewConfig.ts index 4dc40ba1015..08d75b3d050 100644 --- a/apps/files/src/store/viewConfig.ts +++ b/apps/files/src/store/viewConfig.ts @@ -21,6 +21,8 @@ export const useViewConfigStore = function(...args) { getters: { getConfig: (state) => (view: ViewId): ViewConfig => state.viewConfig[view] || {}, + + getConfigs: (state) => (): ViewConfigs => state.viewConfig, }, actions: { -- cgit v1.2.3