diff --git a/frontend/web/src/components/setting/PreferenceSection.tsx b/frontend/web/src/components/setting/PreferenceSection.tsx index 5f52190..652702c 100644 --- a/frontend/web/src/components/setting/PreferenceSection.tsx +++ b/frontend/web/src/components/setting/PreferenceSection.tsx @@ -1,5 +1,6 @@ import { Option, Select } from "@mui/joy"; import { useTranslation } from "react-i18next"; +import { releaseGuard } from "@/helpers/utils"; import { UserSetting, UserSetting_ColorTheme, UserSetting_Locale } from "@/types/proto/api/v2/user_setting_service"; import useUserStore from "../../stores/v1/user"; import BetaBadge from "../BetaBadge"; @@ -61,21 +62,23 @@ const PreferenceSection: React.FC = () => { <>

Preference

-
-
- {t("common.language")} - + {releaseGuard() && ( +
+
+ {t("common.language")} + +
+
- -
+ )}
Color Theme diff --git a/frontend/web/src/components/setting/WorkspaceSection.tsx b/frontend/web/src/components/setting/WorkspaceSection.tsx index 57b9672..34c5c90 100644 --- a/frontend/web/src/components/setting/WorkspaceSection.tsx +++ b/frontend/web/src/components/setting/WorkspaceSection.tsx @@ -9,6 +9,7 @@ import { WorkspaceSetting } from "@/types/proto/api/v2/workspace_service"; const WorkspaceSection: React.FC = () => { const [workspaceSetting, setWorkspaceSetting] = useState(WorkspaceSetting.fromPartial({})); const originalWorkspaceSetting = useRef(WorkspaceSetting.fromPartial({})); + const allowToSave = !isEqual(originalWorkspaceSetting.current, workspaceSetting); useEffect(() => { workspaceServiceClient.getWorkspaceSetting({}).then(({ setting }) => { @@ -85,7 +86,7 @@ const WorkspaceSection: React.FC = () => {

Once enabled, other users can signup.

-