mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-28 21:08:52 -07:00
Fix isRead not being saved on closing popups
This commit is contained in:
parent
fdb6f9f185
commit
1d0bd45274
1 changed files with 5 additions and 2 deletions
|
@ -17,7 +17,10 @@
|
|||
:class="$style.gotIt"
|
||||
primary
|
||||
full
|
||||
@click="$refs.modal.close() && markAsRead()"
|
||||
@click="
|
||||
$refs.modal.close();
|
||||
markAsRead();
|
||||
"
|
||||
>{{ i18n.ts.gotIt }}</MkButton
|
||||
>
|
||||
</div>
|
||||
|
@ -42,7 +45,7 @@ const { id, text, title, imageUrl, isGoodNews } = props.announcement;
|
|||
const modal = shallowRef<InstanceType<typeof MkModal>>();
|
||||
|
||||
function markAsRead() {
|
||||
os.api("i/read-announcement", { announcementId: props.announcement.id });
|
||||
os.api("i/read-announcement", { announcementId: id });
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in a new issue