Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions client/packages/lowcoder/src/pages/setting/idSource/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ export const IdSourceList = (props: any) => {
const enableEnterpriseLogin = useSelector(selectSystemConfig)?.featureFlag?.enableEnterpriseLogin;

useEffect(() => {
if (!currentOrgId || (!isSelfDomain(config) && !isEnterpriseMode(config))) {
if (!currentOrgId) {
return;
}
getConfigs();
}, [currentOrgId]);

if (!currentOrgId || (!isSelfDomain(config) && !isEnterpriseMode(config))) {
if (!currentOrgId) {
return null;
}

Expand Down
9 changes: 2 additions & 7 deletions client/packages/lowcoder/src/pages/setting/settingHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,9 @@ export function SettingHome() {
{
key: SettingPageEnum.OAuthProvider,
label: (
<span>
<span className="text">{trans("settings.oauthProviders")}</span>
{(!currentOrgAdmin(user) || (!isSelfDomain(config) && !isEnterpriseMode(config))) && (
<FreeLimitTag text={trans("settings.premium")} />
)}
</span>
<span className="text">{trans("settings.oauthProviders")}</span>
),
disabled: !currentOrgAdmin(user) || (!isSelfDomain(config) && !isEnterpriseMode(config)),
disabled: !currentOrgAdmin(user),
},
{
key: SettingPageEnum.Environments,
Expand Down
4 changes: 2 additions & 2 deletions client/packages/lowcoder/src/pages/userAuth/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ function Login() {
loginCardView = thirdPartyLoginView;
}

const loginHeading = organizationId && LOWCODER_CUSTOM_AUTH_WELCOME_TEXT !== ""
const loginHeading = LOWCODER_CUSTOM_AUTH_WELCOME_TEXT !== ""
? LOWCODER_CUSTOM_AUTH_WELCOME_TEXT
: getLoginTitle(inviteInfo?.createUserName, systemConfig?.branding?.brandName)

const loginSubHeading = organizationId && LOWCODER_CUSTOM_AUTH_WELCOME_TEXT !== ""
const loginSubHeading = LOWCODER_CUSTOM_AUTH_WELCOME_TEXT !== ""
? trans("userAuth.poweredByLowcoder")
: ''

Expand Down
4 changes: 2 additions & 2 deletions client/packages/lowcoder/src/pages/userAuth/register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ function UserRegister() {
return null;
}

const registerHeading = organizationId && LOWCODER_CUSTOM_AUTH_WELCOME_TEXT !== ""
const registerHeading = LOWCODER_CUSTOM_AUTH_WELCOME_TEXT !== ""
? LOWCODER_CUSTOM_AUTH_WELCOME_TEXT
: trans("userAuth.register")

const registerSubHeading = organizationId && LOWCODER_CUSTOM_AUTH_WELCOME_TEXT !== ""
const registerSubHeading = LOWCODER_CUSTOM_AUTH_WELCOME_TEXT !== ""
? trans("userAuth.poweredByLowcoder")
: ''

Expand Down