mirror of
https://github.com/zadam/trilium.git
synced 2025-12-22 16:20:08 +01:00
chore(prettier): fix all files
This commit is contained in:
@@ -4,27 +4,27 @@ import appContext from "../../components/app_context.js";
|
||||
|
||||
export default class LeftPaneContainer extends FlexContainer {
|
||||
constructor() {
|
||||
super('column');
|
||||
super("column");
|
||||
|
||||
this.id('left-pane');
|
||||
this.css('height', '100%');
|
||||
this.id("left-pane");
|
||||
this.css("height", "100%");
|
||||
this.collapsible();
|
||||
}
|
||||
|
||||
isEnabled() {
|
||||
return super.isEnabled() && options.is('leftPaneVisible');
|
||||
return super.isEnabled() && options.is("leftPaneVisible");
|
||||
}
|
||||
|
||||
entitiesReloadedEvent({loadResults}) {
|
||||
entitiesReloadedEvent({ loadResults }) {
|
||||
if (loadResults.isOptionReloaded("leftPaneVisible")) {
|
||||
const visible = this.isEnabled();
|
||||
this.toggleInt(visible);
|
||||
|
||||
if (visible) {
|
||||
this.triggerEvent('focusTree');
|
||||
this.triggerEvent("focusTree");
|
||||
} else {
|
||||
const activeNoteContext = appContext.tabManager.getActiveContext();
|
||||
this.triggerEvent('focusOnDetail', {ntxId: activeNoteContext.ntxId});
|
||||
this.triggerEvent("focusOnDetail", { ntxId: activeNoteContext.ntxId });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user