Skip to content

Commit dfdda5d

Browse files
authored
Merge pull request #62 from cividi/refactor/snapshot-examples-header
Refactor: Don't show example snapshots header without examples
2 parents 8ecda64 + c076814 commit dfdda5d

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

vue/src/views/Snapshot.vue

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,11 @@
9595
:snapshots="snapshotsStore" :withTopic="true"
9696
/>
9797

98-
<v-subheader
99-
class="px-0 snapshot-list-title">{{ listtitleText }}
100-
</v-subheader>
98+
<template v-if="snapshotsExamples.length !== 0">
99+
<v-subheader class="px-0 snapshot-list-title">{{ listtitleText }}</v-subheader>
101100

102-
<snapshot-list
103-
v-if="snapshotsExamples"
104-
:snapshots="snapshotsExamples" :withTopic="false"
105-
/>
101+
<snapshot-list :snapshots="snapshotsExamples" :withTopic="false" />
102+
</template>
106103

107104
</div>
108105

0 commit comments

Comments
 (0)