mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 15:55:52 +01:00
launchbar WIP
This commit is contained in:
@@ -44,7 +44,7 @@ const DROPDOWN_TPL = `
|
||||
|
||||
export default class BookmarkFolderWidget extends RightDropdownButtonWidget {
|
||||
constructor(note) {
|
||||
super(note.getIcon(), note.title, DROPDOWN_TPL);
|
||||
super(note.title, note.getIcon(), DROPDOWN_TPL);
|
||||
|
||||
this.note = note;
|
||||
}
|
||||
|
||||
@@ -28,8 +28,8 @@ const DROPDOWN_TPL = `
|
||||
</div>`;
|
||||
|
||||
export default class CalendarWidget extends RightDropdownButtonWidget {
|
||||
constructor() {
|
||||
super("bx-calendar", "Calendar", DROPDOWN_TPL);
|
||||
constructor(title, icon) {
|
||||
super(title, icon, DROPDOWN_TPL);
|
||||
}
|
||||
|
||||
doRender() {
|
||||
|
||||
@@ -2,6 +2,8 @@ import ButtonWidget from "./button_widget.js";
|
||||
import appContext from "../../services/app_context.js";
|
||||
import froca from "../../services/froca.js";
|
||||
|
||||
// FIXME: this widget might not be useful anymore
|
||||
|
||||
export default class OpenNoteButtonWidget extends ButtonWidget {
|
||||
targetNote(noteId) {
|
||||
froca.getNote(noteId).then(note => {
|
||||
|
||||
@@ -18,7 +18,7 @@ const TPL = `
|
||||
`;
|
||||
|
||||
export default class RightDropdownButtonWidget extends BasicWidget {
|
||||
constructor(iconClass, title, dropdownTpl) {
|
||||
constructor(title, iconClass, dropdownTpl) {
|
||||
super();
|
||||
|
||||
this.iconClass = iconClass;
|
||||
|
||||
Reference in New Issue
Block a user