basic executor / command mechanism

This commit is contained in:
zadam
2020-02-15 10:41:21 +01:00
parent 6d847d22d3
commit e1bf4dcbc9
6 changed files with 97 additions and 52 deletions

View File

@@ -616,4 +616,10 @@ export default class NoteTreeWidget extends TabAwareWidget {
treeCacheReloadedListener() {
this.reloadTreeFromCache();
}
async moveNotesToCommand() {
const selectedOrActiveBranchIds = this.getSelectedOrActiveNodes().map(node => node.data.branchId);
this.triggerCommand('moveBranchIdsTo', {branchIds: selectedOrActiveBranchIds});
}
}