mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
update: enable disable button state on confirmation.
This commit is contained in:
1 parent
05d9bb8e9c
commit
0d467f6e4b
1 file changed
+3
-1
+3
-1
@@ -20,6 +20,7 @@
|
||||
let selectedPolicy: BackupPolicy = null;
|
||||
|
||||
let showEveryPolicy = false;
|
||||
let confirmedDeletion = false;
|
||||
|
||||
export let showCreatePolicy = false;
|
||||
export let policies: BackupPolicyList;
|
||||
@@ -265,13 +266,14 @@
|
||||
required
|
||||
size="small"
|
||||
id="delete_policy"
|
||||
bind:checked={confirmedDeletion}
|
||||
label="I understand and confirm" />
|
||||
</div>
|
||||
</div>
|
||||
</FormList>
|
||||
<svelte:fragment slot="footer">
|
||||
<Button text on:click={() => (showDelete = false)}>Cancel</Button>
|
||||
<Button secondary submit>Delete</Button>
|
||||
<Button secondary submit disabled={!confirmedDeletion}>Delete</Button>
|
||||
</svelte:fragment>
|
||||
</Modal>
|
||||
|
||||
|
||||
Reference in new issue
Block a user