Skip to content

Commit

Permalink
Revert "feat: switch to notes view when creating new note (#1058)"
Browse files Browse the repository at this point in the history
This reverts commit 4aacdda.
  • Loading branch information
moughxyz committed Jun 1, 2022
1 parent 4aacdda commit c252a06
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions app/assets/javascripts/UIModels/AppState/ContentListViewState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,18 +379,15 @@ export class ContentListViewState extends AbstractState {

createNewNote = async () => {
this.appState.notes.unselectNotes()
this.appState.tags.selected = this.appState.tags.smartViews.find((view) => view.uuid === SystemViewId.AllNotes)

setTimeout(async () => {
let title = `Note ${this.notes.length + 1}`
if (this.isFiltering) {
title = this.noteFilterText
}
let title = `Note ${this.notes.length + 1}`
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 = () => {
Expand Down

0 comments on commit c252a06

Please sign in to comment.