feat: move tag management to new job view header

This commit is contained in:
Christoph Kluge
2024-09-09 18:06:13 +02:00
parent 704620baff
commit b3ed2afebe
5 changed files with 206 additions and 79 deletions

View File

@@ -233,7 +233,7 @@
</script>
<Row class="mb-0 mb-xxl-2">
<!-- Column 1: Job Info, Concurrent Jobs, Admin Message if found-->
<!-- Column 1: Job Info, Job Tags, Concurrent Jobs, Admin Message if found-->
<Col xs={12} md={6} xl={3} class="mb-3 mb-xxl-0">
{#if $initq.error}
<Card body color="danger">{$initq.error.message}</Card>
@@ -245,6 +245,11 @@
<JobInfo job={$initq.data.job} {jobTags} />
</CardBody>
</TabPane>
<TabPane tabId="job-tags" tab="Job Tags">
<CardBody>
<TagManagement job={$initq.data.job} {username} {authlevel} {roles} bind:jobTags renderModal={false}/>
</CardBody>
</TabPane>
{#if $initq.data.job.concurrentJobs != null && $initq.data.job.concurrentJobs.items.length != 0}
<TabPane tabId="shared-jobs">
<span slot="tab">
@@ -321,15 +326,10 @@
<hr/>
<Row class="mb-2">
<Col xs="auto">
{#if $initq.data}
<TagManagement job={$initq.data.job} {username} {authlevel} {roles} bind:jobTags />
{/if}
</Col>
<Col xs="auto">
{#if $initq.data}
<Button outline on:click={() => (isMetricsSelectionOpen = true)}>
<Icon name="graph-up" /> Metrics
<Icon name="graph-up" /> Select Metrics
</Button>
{/if}
</Col>