Revert "[Navigation Tree] Whole tree item clickable (#3632)" (#3635)

This reverts commit e6e07cf95979236569c4a39f2fee9d51b0420032.
This commit is contained in:
Deep Tailor 2021-01-08 12:57:39 -08:00 committed by GitHub
parent e6e07cf959
commit 668bd75025
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 20 deletions

View File

@ -42,10 +42,6 @@ export default {
navigateToPath: {
type: String,
default: undefined
},
propagate: {
type: Boolean,
default: true
}
},
data() {
@ -84,10 +80,6 @@ export default {
},
methods: {
navigateOrPreview(event) {
if (!this.propagate) {
event.stopPropagation();
}
if (this.openmct.editor.isEditing()) {
event.preventDefault();
this.preview();

View File

@ -6,8 +6,6 @@
'position': virtualScroll ? 'absolute' : 'relative'
}"
class="c-tree__item-h"
@click="handleClick"
@contextmenu="handleContextMenu"
>
<div
class="c-tree__item"
@ -22,11 +20,9 @@
class="c-tree__item__view-control"
:control-class="'c-nav__up'"
:enabled="showUp"
:propagate="false"
@input="resetTreeHere"
/>
<object-label
ref="objectLabel"
:domain-object="node.object"
:object-path="node.objectPath"
:navigate-to-path="navigationPath"
@ -38,7 +34,6 @@
class="c-tree__item__view-control"
:control-class="'c-nav__down'"
:enabled="hasComposition && showDown"
:propagate="false"
/>
</div>
</div>
@ -142,13 +137,6 @@ export default {
this.openmct.router.off('change:path', this.highlightIfNavigated);
},
methods: {
handleClick(event) {
this.$refs.objectLabel.$el.click();
},
handleContextMenu(event) {
this.$refs.objectLabel.showContextMenu(event);
event.stopPropagation();
},
isNavigated() {
return this.navigationPath === this.openmct.router.currentLocation.path;
},