Skip to content

Commit

Permalink
Merge pull request #777 from setchy/feature/add-group-namespace-to-br…
Browse files Browse the repository at this point in the history
…eadcrumb

feat(component): add namespace/group to component label/breadcrumb
  • Loading branch information
nscuro authored Mar 13, 2024
2 parents f984f88 + d58035c commit 0d54e75
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 0d54e75

Please sign in to comment.