mirror of
https://github.com/nasa/openmct.git
synced 2025-05-02 08:43:17 +00:00
Fix tree click preview in edit mode (#3645)
* fix non preview issue * fix lint warnings that were left over in master
This commit is contained in:
parent
e60d8d08a4
commit
9af2d15cef
@ -3,7 +3,6 @@
|
|||||||
class="c-tree__item__label c-object-label"
|
class="c-tree__item__label c-object-label"
|
||||||
:class="[statusClass]"
|
:class="[statusClass]"
|
||||||
draggable="true"
|
draggable="true"
|
||||||
:href="objectLink"
|
|
||||||
@dragstart="dragStart"
|
@dragstart="dragStart"
|
||||||
@click="navigateOrPreview"
|
@click="navigateOrPreview"
|
||||||
>
|
>
|
||||||
@ -84,6 +83,8 @@ export default {
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
this.preview();
|
this.preview();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window.location.assign(this.objectLink);
|
||||||
},
|
},
|
||||||
preview() {
|
preview() {
|
||||||
if (this.previewAction.appliesTo(this.objectPath)) {
|
if (this.previewAction.appliesTo(this.objectPath)) {
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="c-toolbar">
|
<div class="c-toolbar">
|
||||||
<toolbar-select-menu
|
<toolbar-select-menu
|
||||||
|
class="menus-to-left menus-no-icon"
|
||||||
:options="fontSizeMenuOptions"
|
:options="fontSizeMenuOptions"
|
||||||
@change="setFontSize"
|
@change="setFontSize"
|
||||||
class="menus-to-left menus-no-icon"
|
|
||||||
/>
|
/>
|
||||||
<div class="c-toolbar__separator"></div>
|
<div class="c-toolbar__separator"></div>
|
||||||
<toolbar-select-menu
|
<toolbar-select-menu
|
||||||
|
class="menus-to-left menus-no-icon"
|
||||||
:options="fontMenuOptions"
|
:options="fontMenuOptions"
|
||||||
@change="setFont"
|
@change="setFont"
|
||||||
class="menus-to-left menus-no-icon"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -148,8 +148,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
this.$refs.objectLabel.navigateOrPreview(event);
|
||||||
this.$refs.objectLabel.$el.click();
|
|
||||||
},
|
},
|
||||||
handleContextMenu(event) {
|
handleContextMenu(event) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user