diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-01-23 20:13:46 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-01-23 20:13:46 +0900 |
| commit | a5df2b029329e7a7c7287c8df8fc9f7adbcaba96 (patch) | |
| tree | e96e7ab9a9c71160dba5fdc8c55d3b12194b4bc5 /packages/frontend/src/components | |
| parent | Merge branch 'develop' (diff) | |
| parent | 13.2.0 (diff) | |
| download | misskey-a5df2b029329e7a7c7287c8df8fc9f7adbcaba96.tar.gz misskey-a5df2b029329e7a7c7287c8df8fc9f7adbcaba96.tar.bz2 misskey-a5df2b029329e7a7c7287c8df8fc9f7adbcaba96.zip | |
Merge branch 'develop'
Diffstat (limited to 'packages/frontend/src/components')
| -rw-r--r-- | packages/frontend/src/components/MkAchievements.vue | 6 | ||||
| -rw-r--r-- | packages/frontend/src/components/MkReactionsViewer.reaction.vue | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/packages/frontend/src/components/MkAchievements.vue b/packages/frontend/src/components/MkAchievements.vue index 64fea96354..19d04721d8 100644 --- a/packages/frontend/src/components/MkAchievements.vue +++ b/packages/frontend/src/components/MkAchievements.vue @@ -16,8 +16,8 @@ <time v-tooltip="new Date(achievement.unlockedAt).toLocaleString()">{{ new Date(achievement.unlockedAt).getFullYear() }}/{{ new Date(achievement.unlockedAt).getMonth() + 1 }}/{{ new Date(achievement.unlockedAt).getDate() }}</time> </span> </div> - <div :class="$style.description">{{ i18n.ts._achievements._types['_' + achievement.name].description }}</div> - <div v-if="i18n.ts._achievements._types['_' + achievement.name].flavor" :class="$style.flavor">{{ i18n.ts._achievements._types['_' + achievement.name].flavor }}</div> + <div :class="$style.description">{{ withDescription ? i18n.ts._achievements._types['_' + achievement.name].description : '???' }}</div> + <div v-if="i18n.ts._achievements._types['_' + achievement.name].flavor && withDescription" :class="$style.flavor">{{ i18n.ts._achievements._types['_' + achievement.name].flavor }}</div> </div> </div> <template v-if="withLocked"> @@ -49,8 +49,10 @@ import { ACHIEVEMENT_TYPES, ACHIEVEMENT_BADGES, claimAchievement } from '@/scrip const props = withDefaults(defineProps<{ user: misskey.entities.User; withLocked: boolean; + withDescription: boolean; }>(), { withLocked: true, + withDescription: true, }); let achievements = $ref(); diff --git a/packages/frontend/src/components/MkReactionsViewer.reaction.vue b/packages/frontend/src/components/MkReactionsViewer.reaction.vue index ec4042d18c..eed6b46594 100644 --- a/packages/frontend/src/components/MkReactionsViewer.reaction.vue +++ b/packages/frontend/src/components/MkReactionsViewer.reaction.vue @@ -21,6 +21,7 @@ import { useTooltip } from '@/scripts/use-tooltip'; import { $i } from '@/account'; import MkReactionEffect from '@/components/MkReactionEffect.vue'; import { claimAchievement } from '@/scripts/achievements'; +import { defaultStore } from '@/store'; const props = defineProps<{ reaction: string; @@ -61,6 +62,7 @@ const toggleReaction = () => { const anime = () => { if (document.hidden) return; + if (!defaultStore.state.animation) return; const rect = buttonEl.value.getBoundingClientRect(); const x = rect.left + 16; |