Fix isRead not being saved on closing popups
This commit is contained in:
parent
f7062a03fe
commit
e7ccbb030d
|
@ -17,7 +17,10 @@
|
||||||
:class="$style.gotIt"
|
:class="$style.gotIt"
|
||||||
primary
|
primary
|
||||||
full
|
full
|
||||||
@click="$refs.modal.close() && markAsRead()"
|
@click="
|
||||||
|
$refs.modal.close();
|
||||||
|
markAsRead();
|
||||||
|
"
|
||||||
>{{ i18n.ts.gotIt }}</MkButton
|
>{{ i18n.ts.gotIt }}</MkButton
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
@ -42,7 +45,7 @@ const { id, text, title, imageUrl, isGoodNews } = props.announcement;
|
||||||
const modal = shallowRef<InstanceType<typeof MkModal>>();
|
const modal = shallowRef<InstanceType<typeof MkModal>>();
|
||||||
|
|
||||||
function markAsRead() {
|
function markAsRead() {
|
||||||
os.api("i/read-announcement", { announcementId: props.announcement.id });
|
os.api("i/read-announcement", { announcementId: id });
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue