Skip to content

Commit faa3212

Browse files
committed
automatic legend for annotations
1 parent e076d57 commit faa3212

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

vue/src/components/SnapshotMeta.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,14 @@
4646
:class="{isPrimary: item.primary}"
4747
>
4848
<v-list-item-icon class="my-0 mr-2">
49-
<legend-icon :shape="item.shape" :isPrimary="item.primary" :attr="item" />
49+
<img
50+
width="20" height="20"
51+
v-if="item.svg"
52+
:src="item.svg">
53+
<legend-icon v-else
54+
:shape="item.shape"
55+
:isPrimary="item.primary"
56+
:attr="item" />
5057
</v-list-item-icon>
5158
<v-list-item-content class="py-0">
5259
<v-list-item-title>

vue/src/views/Workspace.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ export default {
230230
}
231231
categories(showAll:true){
232232
pk
233+
color
233234
name(languageCode: $lang)
234235
hideInList
235236
icon

0 commit comments

Comments
 (0)