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:
Deep Tailor 2021-01-14 11:45:28 -08:00 committed by GitHub
parent e60d8d08a4
commit 9af2d15cef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -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)) {

View File

@ -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>

View File

@ -148,8 +148,7 @@ export default {
}
event.stopPropagation();
this.$refs.objectLabel.$el.click();
this.$refs.objectLabel.navigateOrPreview(event);
},
handleContextMenu(event) {
event.stopPropagation();