This commit is contained in:
@@ -44,11 +44,7 @@
|
||||
import { contextHref } from '$lib/navigation-context.js';
|
||||
import { confirmAction } from '$ui/confirm.js';
|
||||
import { serverTitle } from '$ui/server-labels.js';
|
||||
import {
|
||||
elapsedTime,
|
||||
provisioningContext,
|
||||
provisioningRequester
|
||||
} from '$ui/provisioning-presentation.js';
|
||||
import { elapsedTime, provisioningRequester } from '$ui/provisioning-presentation.js';
|
||||
import { provisioningStatus, provisioningWarnings } from '$ui/provisioning-queue.js';
|
||||
|
||||
let lifecycleOpen = $state(false);
|
||||
@@ -492,7 +488,6 @@
|
||||
>
|
||||
<tbody
|
||||
>{#each rows as row (row.id)}
|
||||
{@const context = provisioningContext(row)}
|
||||
{@const primarySource = row.sources?.[0]}
|
||||
{@const operationHref = contextHref(
|
||||
`/provisioning/${encodeURIComponent(row.id)}`,
|
||||
@@ -513,17 +508,7 @@
|
||||
/></td
|
||||
>
|
||||
<td><a href={operationHref}>{actionLabels[row.action]}</a></td>
|
||||
<td class="status-cell"
|
||||
><ProvisioningStatusBadge state={row.state} size="md" />
|
||||
{#if context}<small>Current step: {context.step}</small>
|
||||
{#if context.detail}<small class="status-detail"
|
||||
>{context.detail}</small
|
||||
>{/if}
|
||||
{/if}
|
||||
{#if ['queued', 'waiting'].includes(row.state) && row.phaseStartedAt && now - Date.parse(row.phaseStartedAt) >= 600000}<small
|
||||
>In this stage {elapsedTime(row.phaseStartedAt, now)}</small
|
||||
>{/if}</td
|
||||
>
|
||||
<td><ProvisioningStatusBadge state={row.state} size="md" /></td>
|
||||
<td class="source-cell"
|
||||
>{#if primarySource?.href}<a
|
||||
href={contextHref(primarySource.href, $page.url)}
|
||||
@@ -722,14 +707,6 @@
|
||||
max-width: 240px;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.status-cell {
|
||||
min-width: 200px;
|
||||
max-width: 320px;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.status-detail {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.requester-cell {
|
||||
max-width: 180px;
|
||||
overflow-wrap: anywhere;
|
||||
|
||||
Reference in New Issue
Block a user