summaryrefslogtreecommitdiff
path: root/packages/client/src/components/notifications.vue
diff options
context:
space:
mode:
Diffstat (limited to 'packages/client/src/components/notifications.vue')
-rw-r--r--packages/client/src/components/notifications.vue7
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/client/src/components/notifications.vue b/packages/client/src/components/notifications.vue
index dc900a670d..8eb569c369 100644
--- a/packages/client/src/components/notifications.vue
+++ b/packages/client/src/components/notifications.vue
@@ -19,8 +19,7 @@
<script lang="ts" setup>
import { defineComponent, markRaw, onUnmounted, onMounted, computed, ref } from 'vue';
import { notificationTypes } from 'misskey-js';
-import MkPagination from '@/components/ui/pagination.vue';
-import { Paging } from '@/components/ui/pagination.vue';
+import MkPagination, { Paging } from '@/components/ui/pagination.vue';
import XNotification from '@/components/notification.vue';
import XList from '@/components/date-separated-list.vue';
import XNote from '@/components/note.vue';
@@ -49,14 +48,14 @@ const onNotification = (notification) => {
const isMuted = props.includeTypes ? !props.includeTypes.includes(notification.type) : $i.mutingNotificationTypes.includes(notification.type);
if (isMuted || document.visibilityState === 'visible') {
stream.send('readNotification', {
- id: notification.id
+ id: notification.id,
});
}
if (!isMuted) {
pagingComponent.value.prepend({
...notification,
- isRead: document.visibilityState === 'visible'
+ isRead: document.visibilityState === 'visible',
});
}
};