mirror of
https://github.com/nasa/openmct.git
synced 2025-01-18 18:57:01 +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="[statusClass]"
|
||||
draggable="true"
|
||||
:href="objectLink"
|
||||
@dragstart="dragStart"
|
||||
@click="navigateOrPreview"
|
||||
>
|
||||
@ -84,6 +83,8 @@ export default {
|
||||
event.preventDefault();
|
||||
this.preview();
|
||||
}
|
||||
|
||||
window.location.assign(this.objectLink);
|
||||
},
|
||||
preview() {
|
||||
if (this.previewAction.appliesTo(this.objectPath)) {
|
||||
|
@ -1,15 +1,15 @@
|
||||
<template>
|
||||
<div class="c-toolbar">
|
||||
<toolbar-select-menu
|
||||
class="menus-to-left menus-no-icon"
|
||||
:options="fontSizeMenuOptions"
|
||||
@change="setFontSize"
|
||||
class="menus-to-left menus-no-icon"
|
||||
/>
|
||||
<div class="c-toolbar__separator"></div>
|
||||
<toolbar-select-menu
|
||||
class="menus-to-left menus-no-icon"
|
||||
:options="fontMenuOptions"
|
||||
@change="setFont"
|
||||
class="menus-to-left menus-no-icon"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -148,8 +148,7 @@ export default {
|
||||
}
|
||||
|
||||
event.stopPropagation();
|
||||
|
||||
this.$refs.objectLabel.$el.click();
|
||||
this.$refs.objectLabel.navigateOrPreview(event);
|
||||
},
|
||||
handleContextMenu(event) {
|
||||
event.stopPropagation();
|
||||
|
Loading…
Reference in New Issue
Block a user