diff options
| -rw-r--r-- | locales/ja.yml | 1 | ||||
| -rw-r--r-- | src/client/app/common/views/widgets/hashtags.vue | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/locales/ja.yml b/locales/ja.yml index 1b4fc15071..ed0691ea50 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -258,6 +258,7 @@ common/views/widgets/posts-monitor.vue: common/views/widgets/hashtags.vue: title: "ハッシュタグ" count: "{}人が投稿" + empty: "トレンドなし" common/views/widgets/server.vue: title: "サーバー情報" diff --git a/src/client/app/common/views/widgets/hashtags.vue b/src/client/app/common/views/widgets/hashtags.vue index 1f1e6ceb52..9dae7661ab 100644 --- a/src/client/app/common/views/widgets/hashtags.vue +++ b/src/client/app/common/views/widgets/hashtags.vue @@ -5,6 +5,7 @@ <div class="mkw-hashtags--body" :data-mobile="platform == 'mobile'"> <p class="fetching" v-if="fetching">%fa:spinner .pulse .fw%%i18n:common.loading%<mk-ellipsis/></p> + <p class="empty" v-else-if="stats.length == 0">%fa:exclamation-circle%%i18n:@empty%<mk-ellipsis/></p> <transition-group v-else tag="div" name="chart"> <div v-for="stat in stats" :key="stat.tag"> <div class="tag"> @@ -65,6 +66,7 @@ export default define({ root(isDark) .mkw-hashtags--body > .fetching + > .empty margin 0 padding 12px 16px text-align center |