Update flag colour on "more" press

This commit is contained in:
Luc Mcgrady 2025-11-10 17:08:30 +00:00
parent 028b285849
commit 4738c4295a
No known key found for this signature in database
GPG key ID: 4F3D7A0B17CC3D9C

View file

@ -26,6 +26,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
function changeFlag(index: number) {
setFlag({ cardIds: [state.currentCard!.card!.id], flag: index });
state.cardData.update(($cardData) => {
$cardData!.queue!.cards[0].card!.flags = index;
return $cardData;
});
}
</script>