propagation
This commit is contained in:
@@ -98,13 +98,13 @@
|
|||||||
{#if item.approvedDate === null}
|
{#if item.approvedDate === null}
|
||||||
|
|
||||||
<Button variant="ghost" class="text-positive"
|
<Button variant="ghost" class="text-positive"
|
||||||
onclick={async () => {await approveDenyItem({id: item.id, approved: true});
|
onclick={async (e) => {e.stopPropagation(); await approveDenyItem({id: item.id, approved: true});
|
||||||
await invalidateAll()}}>
|
await invalidateAll()}}>
|
||||||
<CheckIcon />
|
<CheckIcon />
|
||||||
Approve
|
Approve
|
||||||
</Button>
|
</Button>
|
||||||
<Button variant="ghost" class="text-destructive"
|
<Button variant="ghost" class="text-destructive"
|
||||||
onclick={async () => {await approveDenyItem({id: item.id, approved: false});
|
onclick={async (e) => {e.stopPropagation(); await approveDenyItem({id: item.id, approved: false});
|
||||||
await invalidateAll()}}>
|
await invalidateAll()}}>
|
||||||
<XIcon />
|
<XIcon />
|
||||||
Deny
|
Deny
|
||||||
@@ -112,19 +112,19 @@
|
|||||||
{/if}
|
{/if}
|
||||||
{#if item.claimedDate === null}
|
{#if item.claimedDate === null}
|
||||||
<Button variant="ghost" class="text-action"
|
<Button variant="ghost" class="text-action"
|
||||||
onclick={() => {editCallback(item)}}>
|
onclick={(e) => {e.stopPropagation(); editCallback(item)}}>
|
||||||
<PencilIcon />
|
<PencilIcon />
|
||||||
{!item.approvedDate ? 'Edit' : 'Manage'}
|
{!item.approvedDate ? 'Edit' : 'Manage'}
|
||||||
</Button>
|
</Button>
|
||||||
{:else}
|
{:else}
|
||||||
<Button variant="ghost" class="text-destructive"
|
<Button variant="ghost" class="text-destructive"
|
||||||
onclick={async () => {await approveDenyItem({id: item.id, approved: false});
|
onclick={async (e) => {e.stopPropagation(); await approveDenyItem({id: item.id, approved: false});
|
||||||
await invalidateAll()}}>
|
await invalidateAll()}}>
|
||||||
<TrashIcon />
|
<TrashIcon />
|
||||||
Delete
|
Delete
|
||||||
</Button>
|
</Button>
|
||||||
<Button variant="ghost" class="text-action"
|
<Button variant="ghost" class="text-action"
|
||||||
onclick={async () => {await restoreClaimedItem(item.id);
|
onclick={async (e) => {e.stopPropagation(); await restoreClaimedItem(item.id);
|
||||||
await invalidateAll()}}>
|
await invalidateAll()}}>
|
||||||
<ArchiveRestoreIcon />
|
<ArchiveRestoreIcon />
|
||||||
Restore
|
Restore
|
||||||
|
|||||||
Reference in New Issue
Block a user