quick unhoist link/button

This commit is contained in:
azivner
2018-12-15 20:29:08 +01:00
parent a680bb4612
commit 841420360e
6 changed files with 27 additions and 4 deletions

View File

@@ -117,7 +117,7 @@ const keyBindings = {
"ctrl+h": node => {
hoistedNoteService.getHoistedNoteId().then(hoistedNoteId => {
if (node.data.noteId === hoistedNoteId) {
hoistedNoteService.setHoistedNoteId('root');
hoistedNoteService.unhoist();
}
else {
hoistedNoteService.setHoistedNoteId(node.data.noteId);