summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2024-08-07 20:52:29 -0700
committerChristopher Ng <chrng8@gmail.com>2024-08-08 10:52:20 -0700
commitcfec6fcb1a9eaa57bef5bba757b5b9dbda387c96 (patch)
tree8a7530e978352cf3a44e88373c08d203e3dc5ddb /apps/files
parent86459aa5dace0d4065bfb23705dcc44fa6c18fe3 (diff)
downloadnextcloud-server-cfec6fcb1a9eaa57bef5bba757b5b9dbda387c96.tar.gz
nextcloud-server-cfec6fcb1a9eaa57bef5bba757b5b9dbda387c96.zip
feat(files): Add getter for all view configs
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/src/store/viewConfig.ts2
1 files changed, 2 insertions, 0 deletions
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: {