mirror of
https://github.com/nasa/openmct.git
synced 2025-05-11 04:52:57 +00:00
Disable extended lines on unmount
This commit is contained in:
parent
25ca7d4321
commit
1ea2cf9ce5
@ -74,10 +74,10 @@ export default {
|
|||||||
const objectPath = inject('path');
|
const objectPath = inject('path');
|
||||||
const openmct = inject('openmct');
|
const openmct = inject('openmct');
|
||||||
|
|
||||||
const { disable: disableExetendedLinesForObject, enable: enableExtendedLinesForObject } =
|
const { disable: disableExtendedLinesForObject, enable: enableExtendedLinesForObject } =
|
||||||
useExtendedLines(domainObject, objectPath, openmct);
|
useExtendedLines(domainObject, objectPath, openmct);
|
||||||
|
|
||||||
return { disableExetendedLinesForObject, enableExtendedLinesForObject };
|
return { disableExtendedLinesForObject, enableExtendedLinesForObject };
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -109,6 +109,8 @@ export default {
|
|||||||
this.removeSelectable();
|
this.removeSelectable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.disableExtendEventLines();
|
||||||
|
|
||||||
if (this.removeStatusListener) {
|
if (this.removeStatusListener) {
|
||||||
this.removeStatusListener();
|
this.removeStatusListener();
|
||||||
}
|
}
|
||||||
@ -155,7 +157,7 @@ export default {
|
|||||||
},
|
},
|
||||||
disableExtendEventLines() {
|
disableExtendEventLines() {
|
||||||
const keyString = this.openmct.objects.makeKeyString(this.item.domainObject.identifier);
|
const keyString = this.openmct.objects.makeKeyString(this.item.domainObject.identifier);
|
||||||
this.disableExetendedLinesForObject(keyString);
|
this.disableExtendedLinesForObject(keyString);
|
||||||
},
|
},
|
||||||
setActionCollection(actionCollection) {
|
setActionCollection(actionCollection) {
|
||||||
this.openmct.menus.actionsToMenuItems(
|
this.openmct.menus.actionsToMenuItems(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user