mirror of
https://github.com/nasa/openmct.git
synced 2025-04-19 16:40:58 +00:00
This reverts commit e6e07cf95979236569c4a39f2fee9d51b0420032.
This commit is contained in:
parent
e6e07cf959
commit
668bd75025
@ -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();
|
||||
|
@ -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;
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user