diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-06-05 12:26:36 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2022-06-05 12:26:36 +0900 |
| commit | 5fb3f8a1164e88d4cbff458e0aefb8754e5bb76f (patch) | |
| tree | b570dff87e6e789d09f767f56612fdf7b1344fd5 /packages/client/src/components/notification.vue | |
| parent | chore(client): fix menu item style (diff) | |
| download | misskey-5fb3f8a1164e88d4cbff458e0aefb8754e5bb76f.tar.gz misskey-5fb3f8a1164e88d4cbff458e0aefb8754e5bb76f.tar.bz2 misskey-5fb3f8a1164e88d4cbff458e0aefb8754e5bb76f.zip | |
chore: lint fixes
Diffstat (limited to 'packages/client/src/components/notification.vue')
| -rw-r--r-- | packages/client/src/components/notification.vue | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/packages/client/src/components/notification.vue b/packages/client/src/components/notification.vue index 3791c576ee..cbfd809f37 100644 --- a/packages/client/src/components/notification.vue +++ b/packages/client/src/components/notification.vue @@ -16,7 +16,8 @@ <i v-else-if="notification.type === 'pollVote'" class="fas fa-poll-h"></i> <i v-else-if="notification.type === 'pollEnded'" class="fas fa-poll-h"></i> <!-- notification.reaction が null になることはまずないが、ここでoptional chaining使うと一部ブラウザで刺さるので念の為 --> - <XReactionIcon v-else-if="notification.type === 'reaction'" + <XReactionIcon + v-else-if="notification.type === 'reaction'" ref="reactionRef" :reaction="notification.reaction ? notification.reaction.replace(/^:(\w+):$/, ':$1@.:') : notification.reaction" :custom-emojis="notification.note.emojis" @@ -74,10 +75,10 @@ <script lang="ts"> import { defineComponent, ref, onMounted, onUnmounted, watch } from 'vue'; import * as misskey from 'misskey-js'; -import { getNoteSummary } from '@/scripts/get-note-summary'; import XReactionIcon from './reaction-icon.vue'; import MkFollowButton from './follow-button.vue'; import XReactionTooltip from './reaction-tooltip.vue'; +import { getNoteSummary } from '@/scripts/get-note-summary'; import { notePage } from '@/filters/note'; import { userPage } from '@/filters/user'; import { i18n } from '@/i18n'; @@ -87,7 +88,7 @@ import { useTooltip } from '@/scripts/use-tooltip'; export default defineComponent({ components: { - XReactionIcon, MkFollowButton + XReactionIcon, MkFollowButton, }, props: { @@ -116,7 +117,7 @@ export default defineComponent({ const readObserver = new IntersectionObserver((entries, observer) => { if (!entries.some(entry => entry.isIntersecting)) return; stream.send('readNotification', { - id: props.notification.id + id: props.notification.id, }); observer.disconnect(); }); |