diff --git a/dashboard/src/components/AppInstallDialog.vue b/dashboard/src/components/AppInstallDialog.vue index 968a0efa9..4686ffd75 100644 --- a/dashboard/src/components/AppInstallDialog.vue +++ b/dashboard/src/components/AppInstallDialog.vue @@ -101,11 +101,11 @@ async function submit() { } busy.value = false; - if (error.status === 'Conflict' && error.message.indexOf('port') !== -1) { - const match = error.message.match(/.*port.(.*)/); + if (error.status === 409 && error.body.message.indexOf('port') !== -1) { + const match = error.body.message.match(/.*port.(.*)/); formError.value.port = match ? parseInt(match[1]) : null; - } else if (error.status === 'Conflict' && error.message.indexOf('primary location') !== -1) { - formError.value.location = true; + } else if (error.status === 409 && error.body.message.indexOf('primary location') !== -1) { + formError.value.location = error.body.message; } else if (error.status === 412) { formError.value.generic = error.body.message; } else { @@ -195,6 +195,7 @@ defineExpose({ +
{{ formError.location }}

diff --git a/dashboard/src/components/AppStoreItem.vue b/dashboard/src/components/AppStoreItem.vue index 29a16af34..f4e253a3c 100644 --- a/dashboard/src/components/AppStoreItem.vue +++ b/dashboard/src/components/AppStoreItem.vue @@ -9,7 +9,7 @@ const elem = useTemplateRef('elem'); onMounted(() => { const observer = new IntersectionObserver(result => { - if (result[0].isIntersecting) { + if (result[0].isIntersecting && elem.value) { visible.value = true; observer.unobserve(elem.value); }