Client:PortalSettings: fix document title
This commit is contained in:
parent
e22f39b6ad
commit
8619902f66
@ -183,7 +183,7 @@ const Appearance = (props) => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
getSettings();
|
getSettings();
|
||||||
setDocumentTitle(t("Appearance"));
|
setDocumentTitle(t("Common:Appearance"));
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
@ -110,7 +110,7 @@ const Customization = (props) => {
|
|||||||
const isLoadedSetting = isLoaded && tReady;
|
const isLoadedSetting = isLoaded && tReady;
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setDocumentTitle(t("Customization"));
|
setDocumentTitle(t("Settings:Customization"));
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
resetIsInit();
|
resetIsInit();
|
||||||
|
@ -34,6 +34,7 @@ import { RectangleSkeleton } from "@docspace/shared/skeletons";
|
|||||||
|
|
||||||
import GithubLight from "PUBLIC_DIR/images/github.light.react.svg";
|
import GithubLight from "PUBLIC_DIR/images/github.light.react.svg";
|
||||||
import GithubDark from "PUBLIC_DIR/images/github.dark.react.svg";
|
import GithubDark from "PUBLIC_DIR/images/github.dark.react.svg";
|
||||||
|
import { setDocumentTitle } from "SRC_DIR/helpers/utils";
|
||||||
|
|
||||||
import { StyledContainer } from "./StyledPluginSDK";
|
import { StyledContainer } from "./StyledPluginSDK";
|
||||||
|
|
||||||
@ -48,6 +49,10 @@ const PluginSDK = ({
|
|||||||
}) => {
|
}) => {
|
||||||
const { t } = useTranslation(["WebPlugins", "VersionHistory", "Common"]);
|
const { t } = useTranslation(["WebPlugins", "VersionHistory", "Common"]);
|
||||||
|
|
||||||
|
React.useEffect(() => {
|
||||||
|
setDocumentTitle(t("WebPlugins:PluginSDK"));
|
||||||
|
}, []);
|
||||||
|
|
||||||
const isMobile = currentDeviceType === "mobile";
|
const isMobile = currentDeviceType === "mobile";
|
||||||
|
|
||||||
const icon = !theme.isBase ? <GithubLight /> : <GithubDark />;
|
const icon = !theme.isBase ? <GithubLight /> : <GithubDark />;
|
||||||
|
@ -38,6 +38,7 @@ import { toastr } from "@docspace/shared/components/toast";
|
|||||||
import { SettingsDSConnectSkeleton } from "@docspace/shared/skeletons/settings";
|
import { SettingsDSConnectSkeleton } from "@docspace/shared/skeletons/settings";
|
||||||
import { DeviceType } from "@docspace/shared/enums";
|
import { DeviceType } from "@docspace/shared/enums";
|
||||||
import { SaveCancelButtons } from "@docspace/shared/components/save-cancel-buttons";
|
import { SaveCancelButtons } from "@docspace/shared/components/save-cancel-buttons";
|
||||||
|
import { setDocumentTitle } from "SRC_DIR/helpers/utils";
|
||||||
|
|
||||||
const URL_REGEX = /^https?:\/\/[-a-zA-Z0-9@:%._\+~#=]{1,256}\/?$/;
|
const URL_REGEX = /^https?:\/\/[-a-zA-Z0-9@:%._\+~#=]{1,256}\/?$/;
|
||||||
const DNS_PLACEHOLDER = `${window.location.protocol}//<docspace-dns-name>/`;
|
const DNS_PLACEHOLDER = `${window.location.protocol}//<docspace-dns-name>/`;
|
||||||
@ -69,6 +70,7 @@ const DocumentService = ({
|
|||||||
const [initInternalUrl, setInitInternalUrl] = useState("");
|
const [initInternalUrl, setInitInternalUrl] = useState("");
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
setDocumentTitle(t("DocumentService"));
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
getDocumentServiceLocation()
|
getDocumentServiceLocation()
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user