mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix popups/tooltips not disappearing after loading new note, closes #1214
This commit is contained in:
parent
ceb762e56b
commit
6d095b7250
@ -219,4 +219,16 @@ export default class Entrypoints extends Component {
|
|||||||
|
|
||||||
toastService.showMessage("Note executed");
|
toastService.showMessage("Note executed");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hideAllTooltips() {
|
||||||
|
$(".tooltip").removeClass("show");
|
||||||
|
}
|
||||||
|
|
||||||
|
tabNoteSwitchedEvent() {
|
||||||
|
this.hideAllTooltips();
|
||||||
|
}
|
||||||
|
|
||||||
|
activeTabChangedEvent() {
|
||||||
|
this.hideAllTooltips();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,6 @@ import noteCreateService from "./note_create.js";
|
|||||||
import treeService from "./tree.js";
|
import treeService from "./tree.js";
|
||||||
import hoistedNoteService from "./hoisted_note.js";
|
import hoistedNoteService from "./hoisted_note.js";
|
||||||
import Component from "../widgets/component.js";
|
import Component from "../widgets/component.js";
|
||||||
import ws from "./ws.js";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class contains command executors which logically belong to the NoteTree widget, but for better user experience
|
* This class contains command executors which logically belong to the NoteTree widget, but for better user experience
|
||||||
|
@ -215,7 +215,9 @@ const ATTR_HELP = {
|
|||||||
|
|
||||||
export default class AttributeDetailWidget extends TabAwareWidget {
|
export default class AttributeDetailWidget extends TabAwareWidget {
|
||||||
async refresh() {
|
async refresh() {
|
||||||
// this widget is not activated in a standard way
|
// switching note/tab should close the widget
|
||||||
|
|
||||||
|
this.hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
|
@ -905,6 +905,7 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
|||||||
|
|
||||||
async refresh() {
|
async refresh() {
|
||||||
this.toggleInt(this.isEnabled());
|
this.toggleInt(this.isEnabled());
|
||||||
|
this.$treeSettingsPopup.hide();
|
||||||
|
|
||||||
this.activityDetected();
|
this.activityDetected();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user