diff --git a/src/components/cards/CardsOverview.svelte b/src/components/cards/CardsOverview.svelte new file mode 100644 index 00000000..2738c6b0 --- /dev/null +++ b/src/components/cards/CardsOverview.svelte @@ -0,0 +1,172 @@ + + +{#if store.state.jwtinfo.userdetails.permissions.includes('CARD:GET')} + {#await cards_promise} +
{$_('loading-cards')}
+{$_('this-might-take-a-moment')}
++ {$_('code')} + | ++ {$_('runner')} + | ++ {$_('status')} + | ++ {$_('action')} + | +|
---|---|---|---|---|
+
+ {card.code}
+
+ |
+ + + | +
+
+ {#if card.enabled}
+ {$_('enabled_large')}
+ {:else}
+ {$_('disabled')}
+ {/if}
+
+ |
+
+ {#if active_deletes[card.id] === true}
+ + + + | + {:else} ++ {$_('details')} + {#if store.state.jwtinfo.userdetails.permissions.includes('CARD:DELETE')} + + {/if} + | + {/if} +