Skip to content

Commit

Permalink
招待制・登録閉鎖のときにわかりやすく通知
Browse files Browse the repository at this point in the history
  • Loading branch information
atsu1125 committed Mar 2, 2023
1 parent 3af502d commit 04662ef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions locales/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1798,6 +1798,8 @@ desktop/views/pages/welcome.vue:
photos: "Recent Images"
powered-by-misskey: "Powered by <b>Misskey</b>."
info: "Information"
invitation-required-to-register: "This server is currently invitation only. Only those with an invitation code can register."
unavailable-registration: "This server is not currently registration."
desktop/views/pages/drive.vue:
title: "Misskey storage"
desktop/views/pages/note.vue:
Expand Down
2 changes: 2 additions & 0 deletions locales/ja-JP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1959,6 +1959,8 @@ desktop/views/pages/welcome.vue:
photos: "最近の画像"
powered-by-misskey: "Powered by <b>Misskey</b>."
info: "情報"
invitation-required-to-register: "現在このサーバーは招待制です。招待コードをお持ちの方のみ登録できます。"
unavailable-registration: "現在このサーバーは登録を受け付けておりません。"

desktop/views/pages/drive.vue:
title: "Misskey Drive"
Expand Down
2 changes: 2 additions & 0 deletions src/client/app/desktop/views/pages/welcome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

<div class="desc" style="padding-right: 120px">
<span class="desc" v-html="description || $t('@.about')"></span>
<ui-info warn v-if="meta && (meta.disableRegistration && meta.disableInvitation)">{{ $t('unavailable-registration') }}</ui-info>
<ui-info warn v-if="meta && (meta.disableRegistration && !meta.disableInvitation)">{{ $t('invitation-required-to-register') }}</ui-info>
</div>

<p class="sign">
Expand Down

0 comments on commit 04662ef

Please sign in to comment.