app.error.details is gone, should have never happened

Check BoxError.toPlainObject() for more
This commit is contained in:
Johannes Zellner
2025-10-17 19:45:41 +02:00
parent f14a7808cb
commit 42887fb1d9
8 changed files with 23 additions and 23 deletions
+5 -5
View File
@@ -159,7 +159,7 @@ const TARGET_RUN_STATE = {
function targetRunState() {
// if we have an error, we want to retry the pending state, otherwise toggle the runstate
if (app.value.error) {
if (app.value.error.details.installationState === ISTATES.PENDING_START) return TARGET_RUN_STATE.START;
if (app.value.error.installationState === ISTATES.PENDING_START) return TARGET_RUN_STATE.START;
else return TARGET_RUN_STATE.STOP;
} else {
if (app.value.runState === RSTATES.STOPPED) return TARGET_RUN_STATE.START;
@@ -213,7 +213,7 @@ function hashChange() {
if (parts.length !== 2) return;
const newView = parts[1] || 'info';
if (!isViewEnabled(newView, app.value.error?.details.installationState)) {
if (!isViewEnabled(newView, app.value.error?.installationState)) {
if (!currentView.value) {
currentView.value = 'info';
window.location.hash = `/app/${id.value}/info`;
@@ -245,7 +245,7 @@ onMounted(async () => {
function buildMenuItem(id, label) {
return {
id: id,
disabled: () => !isViewEnabled(id, app.value.error?.details.installationState),
disabled: () => !isViewEnabled(id, app.value.error?.installationState),
label: label,
href: `/#/app/${id.value}/${id}`,
};
@@ -323,8 +323,8 @@ onBeforeUnmount(() => {
<div class="configure-body">
<div class="configure-menu pankow-no-mobile">
<div v-for="view in views" :key="view.id" class="configure-menu-item" :active="currentView === view.id ? true : null" :disabled="isViewEnabled(view.id, app.error?.details.installationState) ? null : true">
<a v-if="isViewEnabled(view.id, app.error?.details.installationState)" :href="`/#/app/${app.id}/${view.id}`">{{ view.label }}</a>
<div v-for="view in views" :key="view.id" class="configure-menu-item" :active="currentView === view.id ? true : null" :disabled="isViewEnabled(view.id, app.error?.installationState) ? null : true">
<a v-if="isViewEnabled(view.id, app.error?.installationState)" :href="`/#/app/${app.id}/${view.id}`">{{ view.label }}</a>
<span v-else>{{ view.label }}</span>
</div>
</div>