From 61214d0464b37aeb5ca2d1f2f53165385f8e27b9 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Thu, 4 May 2023 10:02:53 -0700 Subject: [PATCH] feat: show message if signups are disabled --- locales/en-US.yml | 2 ++ packages/client/src/components/MkSignup.vue | 4 ++++ packages/client/src/components/MkVisibility.vue | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/locales/en-US.yml b/locales/en-US.yml index 24f3b7552c..0b885c7afe 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -1074,6 +1074,8 @@ customKaTeXMacroDescription: "Set up macros to write mathematical expressions ea \ supported; advanced syntax, such as conditional branching, cannot be used here." enableCustomKaTeXMacro: "Enable custom KaTeX macros" 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: description: "Reduces the effort of server moderation through automatically recognizing\ diff --git a/packages/client/src/components/MkSignup.vue b/packages/client/src/components/MkSignup.vue index 7bb0952f7e..a8c4a6d057 100644 --- a/packages/client/src/components/MkSignup.vue +++ b/packages/client/src/components/MkSignup.vue @@ -4,6 +4,10 @@ autocomplete="new-password" @submit.prevent="onSubmit" > +

{{ i18n.ts.signupsDisabled }}

+ {{ i18n.ts.findOtherInstance }} + -