mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge pull request #3035 from appwrite/fix-deprecated-scopes-selection
fix: treat deprecated scopes as selectable and fix badge count
This commit is contained in:
@@ -186,7 +186,7 @@
|
||||
const { detail } = event;
|
||||
if (detail === 'indeterminate') return;
|
||||
filteredScopes.forEach((s) => {
|
||||
if (s.category === category && !s.deprecated) {
|
||||
if (s.category === category) {
|
||||
activeScopes[s.scope] = detail;
|
||||
}
|
||||
});
|
||||
@@ -217,7 +217,7 @@
|
||||
{@const checked = categoryState(category, scopes)}
|
||||
{@const isLastItem = index === categories.length - 1}
|
||||
{@const scopesLength = filteredScopes.filter(
|
||||
(n) => n.category === category && effectiveScopes.includes(n.scope)
|
||||
(n) => n.category === category && activeScopes[n.scope]
|
||||
).length}
|
||||
<Accordion
|
||||
selectable
|
||||
|
||||
Reference in New Issue
Block a user