feat: show message if signups are disabled

This commit is contained in:
ThatOneCalculator 2023-05-04 10:02:53 -07:00
parent 1a120df9ce
commit 61214d0464
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
3 changed files with 8 additions and 2 deletions

View File

@ -1074,6 +1074,8 @@ customKaTeXMacroDescription: "Set up macros to write mathematical expressions ea
\ supported; advanced syntax, such as conditional branching, cannot be used here." \ supported; advanced syntax, such as conditional branching, cannot be used here."
enableCustomKaTeXMacro: "Enable custom KaTeX macros" enableCustomKaTeXMacro: "Enable custom KaTeX macros"
noteId: "Post ID" noteId: "Post ID"
signupsDisabled: "Signups on this server are currently disabled, but you can always sign up at another server! If you have an invitation code for this server, please enter it below."
findOtherInstance: "Find another server"
_sensitiveMediaDetection: _sensitiveMediaDetection:
description: "Reduces the effort of server moderation through automatically recognizing\ description: "Reduces the effort of server moderation through automatically recognizing\

View File

@ -4,6 +4,10 @@
autocomplete="new-password" autocomplete="new-password"
@submit.prevent="onSubmit" @submit.prevent="onSubmit"
> >
<p>{{ i18n.ts.signupsDisabled }}</p>
<MkButton rounded gradate link to="https://calckey.org/join"
>{{ i18n.ts.findOtherInstance }}
</MkButton>
<MkInput <MkInput
v-if="instance.disableRegistration" v-if="instance.disableRegistration"
v-model="invitationCode" v-model="invitationCode"

View File

@ -1,6 +1,6 @@
<template> <template>
<span v-if="note.visibility !== 'public'" :class="$style.visibility"> <span v-if="note.visibility !== 'public'" :class="$style.visibility">
<i <i
v-if="note.visibility === 'home'" v-if="note.visibility === 'home'"
class="ph-house ph-bold ph-lg" class="ph-house ph-bold ph-lg"
v-tooltip="i18n.ts._visibility.home" v-tooltip="i18n.ts._visibility.home"
@ -17,7 +17,7 @@
></i> ></i>
</span> </span>
<span v-if="note.localOnly" :class="$style.localOnly" <span v-if="note.localOnly" :class="$style.localOnly"
><i ><i
class="ph-hand-fist ph-bold ph-lg" class="ph-hand-fist ph-bold ph-lg"
v-tooltip="i18n.ts._visibility.localOnly" v-tooltip="i18n.ts._visibility.localOnly"
></i ></i