mirror of
https://github.com/nasa/openmct.git
synced 2025-03-21 03:25:44 +00:00
update selection views on edit state change
This commit is contained in:
parent
b09b9e0b5b
commit
97292d4ba3
@ -40,13 +40,15 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
this.updateSelectionViews();
|
||||
this.openmct.editor.on('isEditing', this.updateSelectionViews);
|
||||
this.openmct.selection.on('change', this.updateSelectionViews);
|
||||
},
|
||||
unmounted() {
|
||||
this.openmct.editor.off('isEditing', this.updateSelectionViews);
|
||||
this.openmct.selection.off('change', this.updateSelectionViews);
|
||||
},
|
||||
methods: {
|
||||
updateSelectionViews(selection) {
|
||||
updateSelectionViews() {
|
||||
this.clearViews();
|
||||
this.selectedViews = this.openmct.inspectorViews.get(this.openmct.selection.get());
|
||||
this.showViewsForTab();
|
||||
|
Loading…
x
Reference in New Issue
Block a user