Skip to content

Update the branch #484

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
fix: enable oauth for community
  • Loading branch information
raheeliftikhar5 committed Nov 6, 2023
commit f3e5322a6ac60959cc0943b3ba75e7000a34e967
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