moves click handler for deployment info to pill rather than icon

This commit is contained in:
Keviin Åberg Kultalahti 2021-03-12 13:23:51 +01:00
parent 646ed4a7dd
commit 98d88bef23
2 changed files with 14 additions and 1185 deletions

View File

@ -80,6 +80,7 @@
}
function showErrorReasonModal(err) {
if (!err) return
errorReason = err
errorReasonModal.show()
}
@ -118,13 +119,11 @@
{#if deployment.status.toLowerCase() === 'pending'}
<Spinner size="10" />
{/if}
<div class={`deployment-status ${deployment.status}`}>
<div on:click={() => showErrorReasonModal(deployment.err)} class={`deployment-status ${deployment.status}`}>
<span>
{deployment.status}
{#if deployment.status === DeploymentStatus.FAILURE}
<i
class="ri-information-line"
on:click={() => showErrorReasonModal(deployment.err)} />
<i class="ri-information-line"/>
{/if}
</span>
</div>

File diff suppressed because it is too large Load Diff