Skip to content

Commit

Permalink
feat(component): add namespace/group to component label/breadcrumb
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Setch <[email protected]>
  • Loading branch information
setchy committed Mar 13, 2024
1 parent 0b1ca47 commit d58035c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/views/portfolio/projects/Component.vue
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,17 @@ export default {
}
},
componentLabel() {
if (this.component.name && this.component.version) {
return this.component.name + '' + this.component.version;
} else {
return this.component.name;
let label = this.component.name;
if (this.component.group) {
label = this.component.group + '' + label;
}
if (this.component.version) {
label = label + '' + this.component.version;
}
return label;
},
},
data() {
Expand Down

0 comments on commit d58035c

Please sign in to comment.