backend log improvements

This commit is contained in:
zadam
2022-12-15 16:38:05 +01:00
parent 8c01a77a7a
commit 195c6a4089
11 changed files with 168 additions and 34 deletions

View File

@@ -72,19 +72,35 @@ export default class RootCommandExecutor extends Component {
options.toggle('leftPaneVisible');
}
async showBackendLogCommand() {
await appContext.tabManager.openContextWithNote('backendLog', true);
}
async showLaunchBarSubtreeCommand() {
await appContext.tabManager.openContextWithNote('lbRoot', true, null, 'lbRoot');
await this.showAndHoistSubtree('lbRoot');
}
async showShareSubtreeCommand() {
await appContext.tabManager.openContextWithNote('share', true, null, 'share');
await this.showAndHoistSubtree('share');
}
async showHiddenSubtreeCommand() {
await appContext.tabManager.openContextWithNote('hidden', true, null, 'hidden');
await this.showAndHoistSubtree('hidden');
}
async showOptionsCommand() {
await appContext.tabManager.openContextWithNote('options', true, null, 'options')
await this.showAndHoistSubtree('options');
}
async showSQLConsoleHistoryCommand() {
await this.showAndHoistSubtree('sqlConsole');
}
async showSearchHistoryCommand() {
await this.showAndHoistSubtree('search');
}
async showAndHoistSubtree(subtreeNoteId) {
await appContext.tabManager.openContextWithNote(subtreeNoteId, true, null, subtreeNoteId);
}
}