Skip to content

Commit

Permalink
fix(ui): restore error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-mulier-p committed Nov 29, 2024
1 parent 070ab11 commit c78fe64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ui/src/components/layout/DefaultLayout.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<template>
<left-menu v-if="configs" @menu-collapse="onMenuCollapse" />
<main>
<slot v-if="!error" />
<template v-else>
Error: <errors :code="error" />
</template>
<errors v-if="error" :code="error" />
<slot v-else />
</main>
<context-info-bar v-if="configs" />
</template>
Expand Down
3 changes: 3 additions & 0 deletions ui/src/stores/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,8 @@ export default {
guidedProperties(state) {
return state.guidedProperties;
},
error(state) {
return state.error;
}
}
}

0 comments on commit c78fe64

Please sign in to comment.