From 56c97001fab3d81f19728aa06bec74897fbf3e0d Mon Sep 17 00:00:00 2001 From: vi-ku Date: Fri, 27 Mar 2026 20:35:13 +0530 Subject: [PATCH] fix: hide Create new account button when signup is disabled When is_user_creation_disabled is true in the /resource API response, hide the 'Create new account' button on the login page entirely instead of showing it and blocking with an error after the form is filled. Fixes: donetick/donetick#602 --- src/views/Authorization/LoginView.jsx | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/views/Authorization/LoginView.jsx b/src/views/Authorization/LoginView.jsx index f0a1467..108ff14 100644 --- a/src/views/Authorization/LoginView.jsx +++ b/src/views/Authorization/LoginView.jsx @@ -771,17 +771,19 @@ const LoginView = () => { )} - + {!resource?.is_user_creation_disabled && ( + + )}