-
-
-
+
@@ -21,6 +19,7 @@ export default {
data() {
return {
headers: {},
+ isEditing: this.openmct.editor.isEditing(),
configuration: this.tableConfiguration.getConfiguration()
}
},
@@ -41,11 +40,14 @@ export default {
removeObject(objectIdentifier) {
this.tableConfiguration.removeColumnsForObject(objectIdentifier, true);
this.updateHeaders(this.tableConfiguration.getAllHeaders());
+ },
+ toggleEdit(isEditing) {
+ this.isEditing = isEditing;
}
-
},
mounted() {
this.unlisteners = [];
+ this.openmct.editor.on('isEditing', this.toggleEdit);
let compositionCollection = this.openmct.composition.get(this.tableConfiguration.domainObject);
compositionCollection.load()
@@ -62,6 +64,7 @@ export default {
},
destroyed() {
this.tableConfiguration.destroy();
+ this.openmct.editor.off('isEditing', this.toggleEdit);
this.unlisteners.forEach((unlisten) => unlisten());
}
}
diff --git a/src/selection/Selection.js b/src/selection/Selection.js
index 6f294c93b9..3e9cbeb542 100644
--- a/src/selection/Selection.js
+++ b/src/selection/Selection.js
@@ -58,7 +58,7 @@ define(['EventEmitter'], function (EventEmitter) {
this.selected[0].element.classList.remove('s-selected');
}
- if (this.selected[1]) {
+ if (this.selected[1] && this.selected[1].element) {
this.selected[1].element.classList.remove('s-selected-parent');
}
@@ -66,7 +66,7 @@ define(['EventEmitter'], function (EventEmitter) {
selectable[0].element.classList.add('s-selected');
}
- if (selectable[1]) {
+ if (selectable[1] && selectable[1].element) {
selectable[1].element.classList.add('s-selected-parent');
}
@@ -132,7 +132,7 @@ define(['EventEmitter'], function (EventEmitter) {
}
return function () {
- element.removeEventListener('click', capture);
+ element.removeEventListener('click', capture, true);
element.removeEventListener('click', selectCapture);
if (unlisten) {
diff --git a/src/ui/components/inspector/InspectorView.vue b/src/ui/components/inspector/InspectorView.vue
index 02830871dc..f96119e95b 100644
--- a/src/ui/components/inspector/InspectorView.vue
+++ b/src/ui/components/inspector/InspectorView.vue
@@ -1,5 +1,6 @@
-
+
+