mirror of
https://github.com/nasa/openmct.git
synced 2025-06-04 16:40:53 +00:00
23 lines
510 B
JavaScript
23 lines
510 B
JavaScript
export default {
|
|
inject: ['openmct'],
|
|
props: {
|
|
'objectPath': {
|
|
type: Array,
|
|
default() {
|
|
return [];
|
|
}
|
|
}
|
|
},
|
|
computed: {
|
|
objectLink() {
|
|
if (!this.objectPath.length) {
|
|
return;
|
|
}
|
|
return '#/browse/' + this.objectPath
|
|
.map(o => o && this.openmct.objects.makeKeyString(o.identifier))
|
|
.reverse()
|
|
.join('/');
|
|
}
|
|
}
|
|
};
|