Add "show hidden collections" context menu

Closes #3310
This commit is contained in:
rijkvanzanten
2021-02-22 19:49:53 -05:00
parent 0b20922c27
commit 301d5a3337
4 changed files with 92 additions and 9 deletions

View File

@@ -19,6 +19,11 @@ export const useCollectionsStore = createStore({
.filter(({ collection }) => collection.startsWith('directus_') === false)
.filter((collection) => collection.meta?.hidden !== true);
},
hiddenCollections: (state) => {
return state.collections
.filter(({ collection }) => collection.startsWith('directus_') === false)
.filter((collection) => collection.meta?.hidden !== false);
},
},
actions: {
async hydrate() {