mobile global buttons

This commit is contained in:
zadam
2020-03-01 11:53:02 +01:00
parent 4f744564f2
commit 607bdfef92
7 changed files with 50 additions and 24 deletions

View File

@@ -7,6 +7,7 @@ import server from "./server.js";
import appContext from "./app_context.js";
import Component from "../widgets/component.js";
import toastService from "./toast.js";
import noteCreateService from "./note_create.js";
export default class Entrypoints extends Component {
constructor() {
@@ -158,4 +159,12 @@ export default class Entrypoints extends Component {
// when the result list does not change with a query
toastService.showMessage("Search finished successfully.");
}
async switchToDesktopVersionCommand() {
utils.setCookie('trilium-device', 'desktop');
utils.reloadApp();
}
createTopLevelNoteCommand() { noteCreateService.createNewTopLevelNote(); }
}