feat: switch to notes view when creating new note (#1058)
This commit is contained in:
@@ -379,15 +379,18 @@ export class ContentListViewState extends AbstractState {
|
|||||||
|
|
||||||
createNewNote = async () => {
|
createNewNote = async () => {
|
||||||
this.appState.notes.unselectNotes()
|
this.appState.notes.unselectNotes()
|
||||||
|
this.appState.tags.selected = this.appState.tags.smartViews.find((view) => view.uuid === SystemViewId.AllNotes)
|
||||||
|
|
||||||
let title = `Note ${this.notes.length + 1}`
|
setTimeout(async () => {
|
||||||
if (this.isFiltering) {
|
let title = `Note ${this.notes.length + 1}`
|
||||||
title = this.noteFilterText
|
if (this.isFiltering) {
|
||||||
}
|
title = this.noteFilterText
|
||||||
|
}
|
||||||
|
|
||||||
await this.appState.notes.createNewNoteController(title)
|
await this.appState.notes.createNewNoteController(title)
|
||||||
|
|
||||||
this.appState.noteTags.reloadTags()
|
this.appState.noteTags.reloadTags()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
createPlaceholderNote = () => {
|
createPlaceholderNote = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user