mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix: api scopes
This commit is contained in:
1 parent
1b3220b295
commit
3f3ba74531
1 file changed
+6
-4
+6
-4
@@ -18,7 +18,7 @@
|
||||
let name: string = null;
|
||||
let secret: string = null;
|
||||
let expire: string = null;
|
||||
let scopes: string[] = [];
|
||||
let scopes: string[] = null;
|
||||
|
||||
onMount(() => {
|
||||
name ??= $key.name;
|
||||
@@ -135,15 +135,17 @@
|
||||
practice to allow only the permissions you need to meet your project goals.
|
||||
</p>
|
||||
<svelte:fragment slot="aside">
|
||||
<Scopes bind:scopes />
|
||||
{#if scopes !== null}
|
||||
<Scopes bind:scopes />
|
||||
{/if}
|
||||
</svelte:fragment>
|
||||
|
||||
<svelte:fragment slot="actions">
|
||||
<Button
|
||||
submit
|
||||
disabled={!(
|
||||
difference(scopes, $key.scopes).length !== 0 ||
|
||||
difference($key.scopes, scopes).length !== 0
|
||||
difference(scopes ?? [], $key.scopes ?? []).length !== 0 ||
|
||||
difference($key.scopes ?? [], scopes ?? []).length !== 0
|
||||
)}>Update</Button>
|
||||
</svelte:fragment>
|
||||
</CardGrid>
|
||||
|
||||
Reference in new issue
Block a user