mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Adds Message category to scopes
Fixes wrong scope count
This commit is contained in:
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">
|
||||
|
||||
Reference in new issue
Block a user