1
0
Fork 0
mirror of synced 2024-06-30 12:00:31 +12:00

Merge pull request #1280 from Budibase/fix/deployment-error-modal

Fix/deployment error modal
This commit is contained in:
Kevin Åberg Kultalahti 2021-03-15 13:09:55 +01:00 committed by GitHub
commit e103ab671a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 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>

View file

@ -19,6 +19,7 @@
const response = await api.put(`/api/keys/${key}`, { value })
const res = await response.json()
keys = { ...keys, ...res }
notifier.success("API Key saved.")
}
// Get Keys

File diff suppressed because it is too large Load diff