Skip to content

Commit

Permalink
fix(ui): more explicit else-if branches for switch view
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-mulier-p committed Jan 24, 2025
1 parent fccaef4 commit ae40820
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/src/components/dashboard/components/DashboardEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
class="plugin-doc combined-right-view enhance-readability"
:override-intro="intro"
/>
<div class="d-flex justify-content-center align-items-center w-100 p-5" v-if="currentView === views.CHART">
<div class="d-flex justify-content-center align-items-center w-100 p-5" v-else-if="currentView === views.CHART">
<div v-if="selectedChart" class="w-100">
<p class="fs-6 fw-bold">
{{ selectedChart.chartOptions?.displayName ?? selectedChart.id }}
Expand Down
4 changes: 2 additions & 2 deletions ui/src/components/inputs/EditorView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
</div>

<div
v-if="viewType === editorViewTypes.SOURCE_TOPOLOGY || viewType === editorViewTypes.TOPOLOGY"
v-else-if="viewType === editorViewTypes.SOURCE_TOPOLOGY || viewType === editorViewTypes.TOPOLOGY"
:class="viewType === editorViewTypes.SOURCE_TOPOLOGY ? 'combined-right-view' : 'vueflow'"
class="topology-display"
>
Expand Down Expand Up @@ -206,7 +206,7 @@
</div>

<PluginDocumentation
v-if="viewType === editorViewTypes.SOURCE_DOC"
v-else-if="viewType === editorViewTypes.SOURCE_DOC"
class="plugin-doc combined-right-view enhance-readability"
/>
</div>
Expand Down

0 comments on commit ae40820

Please sign in to comment.