diff --git a/src/lib/ACCs.svelte b/src/lib/ACCs.svelte index b9b7325..0f79159 100644 --- a/src/lib/ACCs.svelte +++ b/src/lib/ACCs.svelte @@ -6,8 +6,9 @@ } from "./services/mutateAccessControlConditions.ts"; let signingConditions = JSON.parse(localStorage.getItem("signingConditions")) || []; - let newParameter = ""; - let newComparator = ""; + + let newParameter = ":userAddress"; + let newComparator = "="; let newValue = ""; async function handleCreateNewACC() { @@ -24,48 +25,50 @@ } -

Access Control Conditions

{#each signingConditions as condition, index (index)} {#each condition.accs as acc} -
- {condition.resourceId.baseUrl}{condition.resourceId.path} +
+

+ {condition.resourceId.baseUrl}{condition.resourceId.path} +

+

+ {acc.parameters.join(", ")} + {acc.returnValueTest.comparator} + {acc.returnValueTest.value} +

+
+ -

- {acc.parameters.join(", ")} - {acc.returnValueTest.comparator} - {acc.returnValueTest.value} -

-

- {JSON.stringify(condition)} -

{/each} -

-

- {/each} -

+
- Create New ACC
diff --git a/src/lib/Wallet.svelte b/src/lib/Wallet.svelte index 842bad5..88fa6db 100644 --- a/src/lib/Wallet.svelte +++ b/src/lib/Wallet.svelte @@ -9,6 +9,7 @@ startSignIn as startSignInService, } from "./services/signInWithGoogle"; import { getDrawerStore } from "@skeletonlabs/skeleton"; + import { goto } from "$app/navigation"; const { state, send } = useMachine(walletMachine); const drawerStore = getDrawerStore(); @@ -66,7 +67,7 @@