mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
focus "jump to note" in new tab when there are no workspaces, #2455
This commit is contained in:
parent
b8eeb0371c
commit
26602e8226
@ -84,5 +84,11 @@ export default class EmptyTypeWidget extends TypeWidget {
|
|||||||
.on('click', () => this.triggerCommand('hoistNote', {noteId: workspaceNote.noteId}))
|
.on('click', () => this.triggerCommand('hoistNote', {noteId: workspaceNote.noteId}))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (workspaceNotes.length === 0) {
|
||||||
|
this.$autoComplete
|
||||||
|
.trigger('focus')
|
||||||
|
.trigger('select');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user