File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
contentcuration/contentcuration/frontend/channelEdit/components/ContentNodeListItem Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 9898 v-if =" subtitle"
9999 class =" text"
100100 >{{ subtitle }}</span >
101- <span
102- v-if =" node.categories ? Object.keys(node.categories).length > 0 : null"
103- class =" text"
104- >
105- {{ category(node.categories) }}
106- </span >
107101 <span v-if =" isTopic && node.coach_count" >
108102 <!-- for each learning activity -->
109103 <VTooltip
155149 {{ levels(key) }}
156150 </span >
157151 </span >
152+ <span v-if =" node.categories" >
153+ <span
154+ v-for =" (key, index) in category(node.categories)"
155+ :key =" index"
156+ class =" small-chip"
157+ :style =" { backgroundColor: $themeTokens.fineLine }"
158+ >
159+ {{ key }}
160+ </span >
161+ </span >
158162 </span >
159163 </VListTileContent >
160164
356360 // is created here (unlike in ResourcePanel), because the values
357361 // are used to create one or more individual "chips" to display
358362 // rather than a string of text
359- return ids .map (i => this .translateMetadataString (camelCase (i))). join ( ' , ' ) ;
363+ return ids .map (i => this .translateMetadataString (camelCase (i)));
360364 },
361365 category (options ) {
362366 const ids = Object .keys (options);
514518 justify- content: center;
515519 }
516520
517- .metadata > span: not (: last- child):: after {
518- content: ' • ' ;
519- }
520-
521521 .small - chip {
522522 display: inline- block;
523523 padding: 2px 4px ;
You can’t perform that action at this time.
0 commit comments