Adds Message category to scopes

Fixes wrong scope count
This commit is contained in:
wess authored and Torsten Dittmann committed 2024-02-21 10:34:39 +01:00
1 parent 3995d9cd99
commit a2e2695613
1 file changed
+4 -2
@@ -14,7 +14,7 @@
Functions = 'Functions',
Messaging = 'Messaging',
Storage = 'Storage',
Other = 'Other'
Other = 'Other',
}
let mounted = false;
@@ -23,6 +23,7 @@
scopes.forEach((scope) => {
activeScopes[scope] = true;
});
mounted = true;
});
@@ -71,6 +72,7 @@
const newScopes = allScopes
.filter((scope) => activeScopes[scope.scope])
.map(({ scope }) => scope);
if (symmetricDifference(scopes, newScopes).length) {
scopes = newScopes;
}
@@ -88,7 +90,7 @@
</ul>
<Collapsible>
{#each [Category.Auth, Category.Database, Category.Functions, Category.Storage, Category.Other] as category}
{#each [Category.Auth, Category.Database, Category.Functions, Category.Storage, Category.Messaging, Category.Other] as category}
{@const checked = categoryState(category, scopes)}
<CollapsibleItem withIndentation>
<svelte:fragment slot="beforetitle">