mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-26 05:19:05 +01:00
improve tag scope clarity
This commit is contained in:
parent
8e3327ef6a
commit
ede3da7a87
@ -210,16 +210,6 @@
|
|||||||
<span style="float: right;">
|
<span style="float: right;">
|
||||||
{#if pendingChange === utag.id}
|
{#if pendingChange === utag.id}
|
||||||
<Spinner size="sm" secondary />
|
<Spinner size="sm" secondary />
|
||||||
{:else}
|
|
||||||
{#if utag.scope === 'global' || utag.scope === 'admin'}
|
|
||||||
{#if isAdmin}
|
|
||||||
<Button
|
|
||||||
size="sm"
|
|
||||||
color="danger"
|
|
||||||
on:click={() => removeTagFromJob(utag)}
|
|
||||||
>
|
|
||||||
<Icon name="x" />
|
|
||||||
</Button>
|
|
||||||
{:else}
|
{:else}
|
||||||
<Button
|
<Button
|
||||||
size="sm"
|
size="sm"
|
||||||
@ -227,10 +217,13 @@
|
|||||||
outline
|
outline
|
||||||
disabled
|
disabled
|
||||||
>
|
>
|
||||||
Global Tag
|
{#if utag.scope === 'global' || utag.scope === 'admin'}
|
||||||
</Button>
|
{utag.scope.charAt(0).toUpperCase() + utag.scope.slice(1)} Tag
|
||||||
{/if}
|
|
||||||
{:else}
|
{:else}
|
||||||
|
Private Tag
|
||||||
|
{/if}
|
||||||
|
</Button>
|
||||||
|
{#if isAdmin || (utag.scope !== 'global' && utag.scope !== 'admin')}
|
||||||
<Button
|
<Button
|
||||||
size="sm"
|
size="sm"
|
||||||
color="danger"
|
color="danger"
|
||||||
@ -268,17 +261,19 @@
|
|||||||
{#if pendingChange === uutag.id}
|
{#if pendingChange === uutag.id}
|
||||||
<Spinner size="sm" secondary />
|
<Spinner size="sm" secondary />
|
||||||
{:else}
|
{:else}
|
||||||
{#if uutag.scope === 'global' || uutag.scope === 'admin'}
|
|
||||||
{#if isAdmin}
|
|
||||||
<Button
|
<Button
|
||||||
size="sm"
|
size="sm"
|
||||||
color="success"
|
color="dark"
|
||||||
on:click={() => addTagToJob(uutag)}
|
outline
|
||||||
|
disabled
|
||||||
>
|
>
|
||||||
<Icon name="plus" />
|
{#if uutag.scope === 'global' || uutag.scope === 'admin'}
|
||||||
</Button>
|
{uutag.scope.charAt(0).toUpperCase() + uutag.scope.slice(1)} Tag
|
||||||
{/if}
|
|
||||||
{:else}
|
{:else}
|
||||||
|
Private Tag
|
||||||
|
{/if}
|
||||||
|
</Button>
|
||||||
|
{#if isAdmin || (uutag.scope !== 'global' && uutag.scope !== 'admin')}
|
||||||
<Button
|
<Button
|
||||||
size="sm"
|
size="sm"
|
||||||
color="success"
|
color="success"
|
||||||
|
Loading…
Reference in New Issue
Block a user