feat: can set default value for "Auto sign in" in application edit page (#3987)

This commit is contained in:
DacongDA
2025-07-22 22:57:01 +08:00
committed by GitHub
parent a92430e8fd
commit d867afdd70
2 changed files with 9 additions and 1 deletions

View File

@@ -118,6 +118,7 @@ class SigninTable extends React.Component {
{name: "Login button", displayName: i18next.t("login:Signin button")},
{name: "Signup link", displayName: i18next.t("general:Signup link")},
{name: "Captcha", displayName: i18next.t("general:Captcha")},
{name: "Auto sign in", displayName: i18next.t("login:Auto sign in")},
];
const getItemDisplayName = (text) => {
@@ -259,6 +260,13 @@ class SigninTable extends React.Component {
{id: "inline", name: i18next.t("application:Inline")},
];
}
if (record.name === "Forgot password?") {
options = [
{id: "None", name: `${i18next.t("login:Auto sign in")} - ${i18next.t("general:True")}`},
{id: "Auto sign in - False", name: `${i18next.t("login:Auto sign in")} - ${i18next.t("general:False")}`},
];
}
if (options.length === 0) {
return null;
}