mirror of
https://github.com/ankitects/anki.git
synced 2026-01-10 12:33:55 -05:00
Update flag colour on "more" press
This commit is contained in:
parent
028b285849
commit
4738c4295a
1 changed files with 4 additions and 0 deletions
|
|
@ -26,6 +26,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
|
|
||||||
function changeFlag(index: number) {
|
function changeFlag(index: number) {
|
||||||
setFlag({ cardIds: [state.currentCard!.card!.id], flag: index });
|
setFlag({ cardIds: [state.currentCard!.card!.id], flag: index });
|
||||||
|
state.cardData.update(($cardData) => {
|
||||||
|
$cardData!.queue!.cards[0].card!.flags = index;
|
||||||
|
return $cardData;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue