Skip to content

Commit

Permalink
chore: added a new line and changed v-show to v-if
Browse files Browse the repository at this point in the history
Signed-off-by: GurkiranSingh <gurkiransinghk@gmail.com>
  • Loading branch information
g4rry420 authored and sheremet-va committed Jul 11, 2023
1 parent 3d2cb6e commit 056aa4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/ui/client/components/FileDetails.vue
Expand Up @@ -31,6 +31,7 @@ function open() {
function changeViewMode(view: Params['view']) {
if (view === 'graph')
hasGraphBeenDisplayed.value = true
viewMode.value = view
}
const consoleCount = computed(() => {
Expand Down Expand Up @@ -98,7 +99,7 @@ function onDraft(value: boolean) {
</div>

<div flex flex-col flex-1 overflow="hidden">
<div v-show="hasGraphBeenDisplayed" :flex-1="viewMode === 'graph' && ''">
<div v-if="hasGraphBeenDisplayed" :flex-1="viewMode === 'graph' && ''">
<ViewModuleGraph v-show="viewMode === 'graph'" :graph="graph" data-testid="graph" />
</div>
<ViewEditor v-if="viewMode === 'editor'" :key="current.filepath" :file="current" data-testid="editor" @draft="onDraft" />
Expand Down

0 comments on commit 056aa4f

Please sign in to comment.