Fix bug 57821 - Added change tab color for Desktop Editors on Login page.

This commit is contained in:
Tatiana Lopaeva 2024-03-19 11:12:51 +03:00
parent 6bd07be292
commit 4815ce033d

View File

@ -32,7 +32,11 @@ import { useLocation } from "react-router-dom";
import { LoginFormWrapper, LoginContent } from "./StyledLogin";
import { Text } from "@docspace/shared/components/text";
import { SocialButtonsGroup } from "@docspace/shared/components/social-buttons-group";
import { getOAuthToken, getLoginLink } from "@docspace/shared/utils/common";
import {
getOAuthToken,
getLoginLink,
getEditorTheme,
} from "@docspace/shared/utils/common";
import { Link } from "@docspace/shared/components/link";
import { checkIsSSR } from "@docspace/shared/utils";
import { PROVIDERS_DATA } from "@docspace/shared/constants";
@ -141,6 +145,12 @@ const Login: React.FC<ILoginProps> = ({
const theme = themes[systemTheme];
setTheme(theme);
frameCallCommand("setIsLoaded");
if (window?.AscDesktopEditor !== undefined) {
const editorTheme = getEditorTheme(systemTheme);
window.AscDesktopEditor.execCommand("portal:uitheme", editorTheme);
}
}, []);
const ssoExists = () => {