mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-23 20:33:09 +02:00
ユーザーが存在しない場合の表示を追加
This commit is contained in:
parent
92a4e90026
commit
d9092dc81f
2 changed files with 13 additions and 0 deletions
|
@ -232,6 +232,9 @@ common/views/pages/explore.vue:
|
|||
popular-tags: "人気のタグ"
|
||||
federated: "連合"
|
||||
|
||||
common/views/components/user-list.vue:
|
||||
no-users: "ユーザーがいません"
|
||||
|
||||
common/views/components/games/reversi/reversi.vue:
|
||||
matching:
|
||||
waiting-for: "{}を待っています"
|
||||
|
|
|
@ -5,6 +5,9 @@
|
|||
<mk-error v-if="!fetching && !inited" @retry="init()"/>
|
||||
|
||||
<div class="efvhhmdq" v-size="[{ lt: 500, class: 'narrow' }]">
|
||||
<div class="no-users" v-if="inited && us.length == 0">
|
||||
<p>{{ $t('no-users') }}</p>
|
||||
</div>
|
||||
<div class="user" v-for="user in us">
|
||||
<mk-avatar class="avatar" :user="user"/>
|
||||
<div class="body">
|
||||
|
@ -26,8 +29,11 @@
|
|||
|
||||
<script lang="ts">
|
||||
import Vue from 'vue';
|
||||
import i18n from '../../../i18n';
|
||||
|
||||
export default Vue.extend({
|
||||
i18n: i18n('common/views/components/user-list.vue'),
|
||||
|
||||
props: {
|
||||
makePromise: {
|
||||
required: true
|
||||
|
@ -92,6 +98,10 @@ export default Vue.extend({
|
|||
> .user > .body > .description
|
||||
display none
|
||||
|
||||
> .no-users
|
||||
text-align center
|
||||
color var(--text)
|
||||
|
||||
> .user
|
||||
display flex
|
||||
padding 16px
|
||||
|
|
Loading…
Reference in a new issue