diff --git a/dashboard/src/components/AppArchive.vue b/dashboard/src/components/AppArchive.vue index fdec672b0..6b179eedf 100644 --- a/dashboard/src/components/AppArchive.vue +++ b/dashboard/src/components/AppArchive.vue @@ -207,8 +207,10 @@ async function onRestoreSubmit() { if (error.type === 'externally_exists') { restoreError.value.dnsInUse = 'Some DNS records exist. Submit again to overwrite.'; restoreNeedsOverwrite.value = true; + } else if (error.body) { + restoreError.value.generic = error.body.message; } else { - restoreError.value.generic = error.body ? error.body.message : 'Internal error'; + restoreError.value.generic = 'Internal error'; console.error(error); } restoreBusy.value = false; @@ -257,9 +259,9 @@ onMounted(async () => { >

-
{{ restoreError.generic }}
-
{{ restoreError.dnsInUse }}
- +
{{ restoreError.generic }}
+
{{ restoreError.dnsInUse }}
+
{{ restoreError.port }}
@@ -269,6 +271,7 @@ onMounted(async () => { +
@@ -280,8 +283,6 @@ onMounted(async () => { - -
diff --git a/dashboard/src/style.css b/dashboard/src/style.css index 1cbb62e56..673aabbeb 100644 --- a/dashboard/src/style.css +++ b/dashboard/src/style.css @@ -175,6 +175,13 @@ tr:hover .table-actions { font-size: 12px; } +.error-label { + margin-top: 6px; + color: var(--pankow-color-danger); + font-weight: bold; + font-size: 12px; +} + .view-header { display: flex; flex-wrap: wrap;