Skip to content

Commit a46d5c2

Browse files
committed
Remove scope enum aliases
1 parent cc4c3a6 commit a46d5c2

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • src/routes/(console)/project-[region]-[project]/functions/function-[function]/settings

src/routes/(console)/project-[region]-[project]/functions/function-[function]/settings/updateScopes.svelte

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
import { onMount } from 'svelte';
1111
import { func } from '../store';
1212
import { isValueOfStringEnum } from '$lib/helpers/types';
13-
import { Runtime, type Scopes as ScopesType } from '@appwrite.io/console';
14-
import Scopes from '$routes/(console)/project-[region]-[project]/overview/api-keys/scopes.svelte';
13+
import { Runtime, type Scopes } from '@appwrite.io/console';
14+
import ScopeSelector from '$routes/(console)/project-[region]-[project]/overview/api-keys/scopes.svelte';
1515
import { symmetricDifference } from '$lib/helpers/array';
1616
import { Link } from '$lib/elements';
1717
1818
const functionId = page.params.function;
19-
let functionScopes: ScopesType[] = null;
19+
let functionScopes: Scopes[] = null;
2020
2121
onMount(async () => {
22-
functionScopes ??= $func.scopes as ScopesType[];
22+
functionScopes ??= $func.scopes as Scopes[];
2323
});
2424
2525
async function updateScopes() {
@@ -75,7 +75,7 @@
7575
>.
7676
<svelte:fragment slot="aside">
7777
{#if functionScopes !== null}
78-
<Scopes bind:scopes={functionScopes} />
78+
<ScopeSelector bind:scopes={functionScopes} />
7979
{/if}
8080
</svelte:fragment>
8181

0 commit comments

Comments
 (0)