77
88 <v-list two-line >
99 <div v-for =" tag in allTags()" v-bind:key =" tag" >
10- <v-list-group v-if =" typesByTag(tag).length > 0" prepend-icon =" bookmark_border" >
11- <template v-slot :activator >
12- <v-list-tile >
13- <v-list-tile-title >{{tag}}</v-list-tile-title >
14- </v-list-tile >
15- </template >
16-
17- <v-tooltip right v-for =" item in typesByTag(tag)" :key =" item.name" >
18- <template v-slot :activator =" { on } " >
19- <v-list-tile v-on =" on" @click =" setType(item.name)" v-if =" item.properties.title" >
20- <v-list-tile-avatar >
21- <v-icon v-bind:class =" item.properties.icon_class" >{{ item.properties.icon || "not_interested" }}</v-icon >
22- </v-list-tile-avatar >
23- <v-list-tile-content >{{ item.properties.title }}</v-list-tile-content >
10+ <v-list-group v-if =" typesByTag(tag).length > 0" prepend-icon =" bookmark_border" >
11+ <template v-slot :activator >
12+ <v-list-tile >
13+ <v-list-tile-title >{{tag}}</v-list-tile-title >
2414 </v-list-tile >
2515 </template >
26- <span v-if =" item.properties.description" >{{ item.properties.description }}</span >
27- <span v-else >{{ item.properties.title }}</span >
28- </v-tooltip >
29- </v-list-group >
16+
17+ <v-tooltip right v-for =" item in typesByTag(tag)" :key =" item.name" >
18+ <template v-slot :activator =" { on } " >
19+ <v-list-tile v-on =" on" @click =" setType(item.name)" v-if =" item.properties.title" >
20+ <v-list-tile-avatar >
21+ <v-icon v-bind:class =" item.properties.icon_class" >{{ item.properties.icon || 'not_interested' }}
22+ </v-icon >
23+ </v-list-tile-avatar >
24+ <v-list-tile-content >{{ item.properties.title }}</v-list-tile-content >
25+ </v-list-tile >
26+ </template >
27+ <span v-if =" item.properties.description" >{{ item.properties.description }}</span >
28+ <span v-else >{{ item.properties.title }}</span >
29+ </v-tooltip >
30+ </v-list-group >
3031 </div >
3132 </v-list >
3233
@@ -42,17 +43,23 @@ export default {
4243 methods: {
4344 allTags () {
4445 return this .$store .getters .getTypes
45- .map (v => { return v .properties .tags })
46+ .map (v => {
47+ return v .properties .tags
48+ })
4649 .filter (el => el === 0 || Boolean (el))
47- .map (v => { return v .split (' ,' ) })
50+ .map (v => {
51+ return v .split (' ,' )
52+ })
4853 .flatMap (v => v)
4954 .filter (this .onlyUnique )
5055 .filter (el => el !== ' ui' )
5156 },
5257 typesByTag (tag ) {
5358 return this .$store .getters .getTypes
5459 .filter (el => el === 0 || Boolean (el .properties .tags ))
55- .filter (v => { return v .properties .tags .includes (tag) && v .properties .tags .includes (' ui' ) })
60+ .filter (v => {
61+ return v .properties .tags .includes (tag) && v .properties .tags .includes (' ui' )
62+ })
5663 },
5764 onlyUnique (value , index , self ) {
5865 return self .indexOf (value) === index
0 commit comments