mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-06 16:16:42 +08:00
fix: keep notification read action available
This commit is contained in:
@@ -185,6 +185,7 @@ function handleMessage(event: MessageEvent) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 将通知列表标记为已读,并同步清理应用角标和未读红点。 */
|
||||||
function markAllAsRead() {
|
function markAllAsRead() {
|
||||||
hasNewMessage.value = false
|
hasNewMessage.value = false
|
||||||
notificationList.value.forEach(item => {
|
notificationList.value.forEach(item => {
|
||||||
@@ -262,7 +263,7 @@ useDelayedSSE(
|
|||||||
<template #append>
|
<template #append>
|
||||||
<VTooltip :text="t('notification.markRead')">
|
<VTooltip :text="t('notification.markRead')">
|
||||||
<template #activator="{ props }">
|
<template #activator="{ props }">
|
||||||
<IconBtn v-bind="props" :disabled="!hasUnreadNotifications && !hasNewMessage" @click.stop="markAllAsRead">
|
<IconBtn v-bind="props" @click.stop="markAllAsRead">
|
||||||
<VIcon icon="mdi-email-check-outline" size="20" />
|
<VIcon icon="mdi-email-check-outline" size="20" />
|
||||||
</IconBtn>
|
</IconBtn>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user