mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 01:05:49 +01:00
refactoring of pane => split, "pane" keeps its old meaning (left-pane, center-pane, right-pane)
This commit is contained in:
@@ -13,6 +13,6 @@ export default class ClosePaneButton extends ButtonWidget {
|
||||
this.icon("bx-x")
|
||||
.title("Close this pane")
|
||||
.titlePlacement("bottom")
|
||||
.onClick(widget => widget.triggerCommand("closeThisPane", { ntxId: widget.getNtxId() }));
|
||||
.onClick(widget => widget.triggerCommand("closeThisNoteSplit", { ntxId: widget.getNtxId() }));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,8 +5,8 @@ export default class CreatePaneButton extends ButtonWidget {
|
||||
super();
|
||||
|
||||
this.icon("bx-dock-right")
|
||||
.title("Create new pane")
|
||||
.title("Create new split")
|
||||
.titlePlacement("bottom")
|
||||
.onClick(widget => widget.triggerCommand("openNewPane", { ntxId: widget.getNtxId() }));
|
||||
.onClick(widget => widget.triggerCommand("openNewNoteSplit", { ntxId: widget.getNtxId() }));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ import ButtonWidget from "./button_widget.js";
|
||||
import options from "../../services/options.js";
|
||||
import splitService from "../../services/split.js";
|
||||
|
||||
export default class SidebarToggleWidget extends ButtonWidget {
|
||||
export default class LeftPaneToggleWidget extends ButtonWidget {
|
||||
refreshIcon() {
|
||||
const isLeftPaneVisible = options.is('leftPaneVisible');
|
||||
|
||||
Reference in New Issue
Block a user