mirror of
https://github.com/ankitects/anki.git
synced 2026-01-09 12:03:56 -05:00
Fix: use setUndo
This commit is contained in:
parent
6cbf15851e
commit
8d3179c507
1 changed files with 2 additions and 2 deletions
|
|
@ -224,10 +224,10 @@ export class ReviewerState {
|
||||||
const noteIds = [this.currentCard.card.noteId];
|
const noteIds = [this.currentCard.card.noteId];
|
||||||
if (this._cardData.marked) {
|
if (this._cardData.marked) {
|
||||||
await removeNoteTags({ noteIds, tags: "marked" });
|
await removeNoteTags({ noteIds, tags: "marked" });
|
||||||
this.undoStatus!.undo = tr.actionsRemoveTag();
|
this.setUndo(tr.actionsRemoveTag());
|
||||||
} else {
|
} else {
|
||||||
await addNoteTags({ noteIds, tags: "marked" });
|
await addNoteTags({ noteIds, tags: "marked" });
|
||||||
this.undoStatus!.undo = tr.actionsUpdateTag();
|
this.setUndo(tr.actionsUpdateTag());
|
||||||
}
|
}
|
||||||
this.marked.update($marked => !$marked);
|
this.marked.update($marked => !$marked);
|
||||||
this._cardData.marked = !this._cardData.marked;
|
this._cardData.marked = !this._cardData.marked;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue