Fix bug 57821 - Added change tab color for Desktop Editors on Login page.
This commit is contained in:
parent
6bd07be292
commit
4815ce033d
@ -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 = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user