Skip to content

Commit

Permalink
Tuning Details for EE Features Display
Browse files Browse the repository at this point in the history
  • Loading branch information
FalkWolsky committed Nov 23, 2024
1 parent 42624c6 commit 3fca62d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions client/packages/lowcoder/src/pages/setting/settingHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ import {
EnvironmentsIcon,
UsageStatisticsIcon,
AutitLogsIcon,
BrandingIcon,
AuditAppIcon
} from "lowcoder-design";
BrandingIcon
} from "lowcoder-design";
import { useSelector } from "react-redux";
import { useEffect } from "react";
import { getUser } from "redux/selectors/usersSelectors";
Expand Down Expand Up @@ -89,7 +88,7 @@ export function SettingHome() {
label: (
<span>
<span className="text">{trans("settings.environments")}</span>
{(!isEE() || !currentOrgAdmin(user) && (
{(!isEE() && (
<FreeLimitTag text={trans("settings.premium")} />
))}
</span>
Expand All @@ -102,7 +101,7 @@ export function SettingHome() {
label: (
<span>
<span className="text">{trans("settings.appUsage")}</span>
{(!isEE() || !currentOrgAdmin(user) && (
{(!isEE() && (
<FreeLimitTag text={trans("settings.premium")} />
))}
</span>
Expand All @@ -115,20 +114,20 @@ export function SettingHome() {
label: (
<span>
<span className="text">{trans("settings.audit")}</span>
{(!isEE() || !currentOrgAdmin(user) && (
{(!isEE() && (
<FreeLimitTag text={trans("settings.premium")} />
))}
</span>
),
icon: <AuditAppIcon width={"20px"}/>,
icon: <AutitLogsIcon width={"20px"}/>,
disabled: !isEE() || !currentOrgAdmin(user),
},
{
key: SettingPageEnum.Branding,
label: (
<span>
<span className="text">{trans("settings.branding")}</span>
{(!isEE() || !currentOrgAdmin(user) && (
{(!isEE() && (
<FreeLimitTag text={trans("settings.premium")} />
))}
</span>
Expand Down
2 changes: 1 addition & 1 deletion client/packages/lowcoder/src/util/envUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function developEnv(): boolean {
*/
// Falk: TODO: check EE by API Call
export function isEE(): boolean {
return true;
return false;
// return REACT_APP_EDITION === "enterprise" || REACT_APP_EDITION === "enterprise-global";
}

Expand Down

0 comments on commit 3fca62d

Please sign in to comment.