diff --git a/web/frontend/src/Job.root.svelte b/web/frontend/src/Job.root.svelte index a783cf3..0ea549f 100644 --- a/web/frontend/src/Job.root.svelte +++ b/web/frontend/src/Job.root.svelte @@ -233,7 +233,7 @@ - + {#if $initq.error} {$initq.error.message} @@ -245,6 +245,11 @@ + + + + + {#if $initq.data.job.concurrentJobs != null && $initq.data.job.concurrentJobs.items.length != 0} @@ -321,15 +326,10 @@
- - {#if $initq.data} - - {/if} - {#if $initq.data} {/if} diff --git a/web/frontend/src/generic/helper/JobFootprint.svelte b/web/frontend/src/generic/helper/JobFootprint.svelte index 4e1abb0..b6087a7 100644 --- a/web/frontend/src/generic/helper/JobFootprint.svelte +++ b/web/frontend/src/generic/helper/JobFootprint.svelte @@ -208,7 +208,7 @@ {fpd.message}{fpd.message} @@ -246,7 +246,7 @@ {fpd.message}{fpd.message} {/if} {/each} diff --git a/web/frontend/src/job/JobSummary.svelte b/web/frontend/src/job/JobSummary.svelte index 48f6e99..3da86a5 100644 --- a/web/frontend/src/job/JobSummary.svelte +++ b/web/frontend/src/job/JobSummary.svelte @@ -265,7 +265,7 @@ {fpd.message}{fpd.message} @@ -303,7 +303,7 @@ {fpd.message}{fpd.message} {/if} {/each} diff --git a/web/frontend/src/job/StatsTable.svelte b/web/frontend/src/job/StatsTable.svelte index 606d05b..a71f60f 100644 --- a/web/frontend/src/job/StatsTable.svelte +++ b/web/frontend/src/job/StatsTable.svelte @@ -89,7 +89,7 @@ {#each selectedMetrics as metric} diff --git a/web/frontend/src/job/TagManagement.svelte b/web/frontend/src/job/TagManagement.svelte index 408cc70..2147a8d 100644 --- a/web/frontend/src/job/TagManagement.svelte +++ b/web/frontend/src/job/TagManagement.svelte @@ -7,21 +7,28 @@ - `username String`: Empty string if auth. is disabled, otherwise the username as string - `authlevel Number`: The current users authentication level - `roles [Number]`: Enum containing available roles + - `renderModal Bool?`: If component is rendered as bootstrap modal button [Default: true] --> - (isOpen = !isOpen)}> - - Manage Tags - {#if pendingChange !== false} - - {:else} - - {/if} - - +{#if renderModal} + (isOpen = !isOpen)}> + + Manage Tags + {#if pendingChange !== false} + + {:else} + + {/if} + + + + + + Search using "type: name". If no tag matches your search, a + button for creating a new one will appear. + +
+
    + {#each allTagsFiltered as tag} + + + + + {#if pendingChange === tag.id} + + {:else if job.tags.find((t) => t.id == tag.id)} + + {:else} + + {/if} + + + {:else} + + No tags matching + + {/each} +
+
+ {#if newTagType && newTagName && isNewTag(newTagType, newTagName)} +
+ + {#if roles && authlevel >= roles.admin} + + {/if} +
+ {:else if allTagsFiltered.length == 0} + Search Term is not a valid Tag (type: name) + {/if} +
+ + + +
+ + +{:else} + + + + + + + Search using "type: name". If no tag matches your search, a + button for creating a new one will appear. + + -
- - - Search using "type: name". If no tag matches your search, a - button for creating a new one will appear. - - -
    - {#each allTagsFiltered as tag} - - + {#if usedTagsFiltered.length > 0} + + {#each usedTagsFiltered as utag} + + - {#if pendingChange === tag.id} + {#if pendingChange === utag.id} + + {:else} + + {/if} + + + {/each} + + {:else if filterTerm !== ""} + + + No used tags matching + + + {/if} + + {#if unusedTagsFiltered.length > 0} + + {#each unusedTagsFiltered as uutag} + + + + + {#if pendingChange === uutag.id} - {:else if job.tags.find((t) => t.id == tag.id)} - {:else} {/if} - {:else} - - No tags matching - {/each} -
-
- {#if newTagType && newTagName && isNewTag(newTagType, newTagName)} -
+ + {:else if filterTerm !== ""} + + + No unused tags matching + + + {/if} + + {#if newTagType && newTagName && isNewTag(newTagType, newTagName)} + + - {#if roles && authlevel >= roles.admin} - - - {/if} -
- {:else if allTagsFiltered.length == 0} - Search Term is not a valid Tag (type: name) - {/if} -
- - - -
- - + + + {/if} +
+ {:else if allTagsFiltered.length == 0} + Search Term is not a valid Tag (type: name) + {/if} +{/if}