feat: Re-enabled multiple selection on mobile, with improved UI (#2609)

This commit is contained in:
Aman Harwara
2023-10-27 17:54:51 +05:30
committed by GitHub
parent 66a6c61ffa
commit c8dec9bfec
7 changed files with 172 additions and 31 deletions

View File

@@ -293,6 +293,17 @@ export class NotesController
})
}
async toggleArchiveSelectedNotes(): Promise<void> {
const notes = this.selectedNotes
const archived = notes.some((note) => note.archived)
if (!archived) {
await this.setArchiveSelectedNotes(true)
} else {
await this.setArchiveSelectedNotes(false)
}
}
async setProtectSelectedNotes(protect: boolean): Promise<void> {
const selectedNotes = this.getSelectedNotesList()
if (protect) {