This commit is contained in:
zadam
2020-02-28 11:46:35 +01:00
parent cb35284d37
commit a2d6a5c3e9
5 changed files with 21 additions and 5 deletions

View File

@@ -17,6 +17,13 @@ class TabContext extends Component {
this.tabId = tabId || utils.randomString(4);
}
setEmpty() {
this.triggerEvent('tabNoteSwitched', {
tabId: this.tabId,
notePath: this.notePath
});
}
async setNote(inputNotePath, triggerSwitchEvent = true) {
const notePath = await treeService.resolveNotePath(inputNotePath);