From 9dbdd6ac60c1f4b4a561c2c7f8f6a39fca880902 Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 18 Apr 2024 20:12:01 +0800 Subject: [PATCH] perf: change i18n --- apps/authentication/views/login.py | 3 +++ apps/i18n/lina/en.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/authentication/views/login.py b/apps/authentication/views/login.py index 23ad4d814..4cf678fc7 100644 --- a/apps/authentication/views/login.py +++ b/apps/authentication/views/login.py @@ -193,6 +193,9 @@ class UserLoginView(mixins.AuthMixin, UserLoginContextMixin, FormView): if self.request.GET.get("admin", 0): return None + if not settings.XPACK_ENABLED: + return None + auth_types = [m for m in self.get_support_auth_methods() if m.get('auto_redirect')] if not auth_types: return None diff --git a/apps/i18n/lina/en.json b/apps/i18n/lina/en.json index bf92bbb92..7acfcab89 100644 --- a/apps/i18n/lina/en.json +++ b/apps/i18n/lina/en.json @@ -978,7 +978,7 @@ "SelectByAttr": "Attribute Filter", "SelectFile": "Select File", "SelectKeyOrCreateNew": "Select Tag Key or Create New One", - "SelectLabelFilter": "Select tag for search", + "SelectLabelFilter": "Select label for search", "SelectPlatforms": "Select Platform", "SelectProperties": "Attributes", "SelectResource": "Select Resources",