Merge pull request #1280 from Budibase/fix/deployment-error-modal
Fix/deployment error modal
This commit is contained in:
commit
6b9476e9ba
|
@ -80,6 +80,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function showErrorReasonModal(err) {
|
function showErrorReasonModal(err) {
|
||||||
|
if (!err) return
|
||||||
errorReason = err
|
errorReason = err
|
||||||
errorReasonModal.show()
|
errorReasonModal.show()
|
||||||
}
|
}
|
||||||
|
@ -118,13 +119,11 @@
|
||||||
{#if deployment.status.toLowerCase() === 'pending'}
|
{#if deployment.status.toLowerCase() === 'pending'}
|
||||||
<Spinner size="10" />
|
<Spinner size="10" />
|
||||||
{/if}
|
{/if}
|
||||||
<div class={`deployment-status ${deployment.status}`}>
|
<div on:click={() => showErrorReasonModal(deployment.err)} class={`deployment-status ${deployment.status}`}>
|
||||||
<span>
|
<span>
|
||||||
{deployment.status}
|
{deployment.status}
|
||||||
{#if deployment.status === DeploymentStatus.FAILURE}
|
{#if deployment.status === DeploymentStatus.FAILURE}
|
||||||
<i
|
<i class="ri-information-line"/>
|
||||||
class="ri-information-line"
|
|
||||||
on:click={() => showErrorReasonModal(deployment.err)} />
|
|
||||||
{/if}
|
{/if}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
const response = await api.put(`/api/keys/${key}`, { value })
|
const response = await api.put(`/api/keys/${key}`, { value })
|
||||||
const res = await response.json()
|
const res = await response.json()
|
||||||
keys = { ...keys, ...res }
|
keys = { ...keys, ...res }
|
||||||
|
notifier.success("API Key saved.")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get Keys
|
// Get Keys
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue