mirror of
https://github.com/nextcloud/server.git
synced 2026-03-12 13:44:53 -04:00
feat(files): Add getter for all view configs
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
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: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue