Web: Files: fixed thirdparty route

This commit is contained in:
Nikita Gopienko 2021-01-11 13:34:29 +03:00
parent ebaf9ccecd
commit 9767111de3
3 changed files with 3 additions and 6 deletions

View File

@ -153,7 +153,7 @@ const PureTreeSettings = ({
title={t("TreeSettingsAdminSettings")}
/>
) : null}
{/*enableThirdParty ? (
{enableThirdParty ? (
<TreeNode
selectable={true}
className="settings-node"
@ -162,7 +162,7 @@ const PureTreeSettings = ({
isLeaf={true}
title={t("TreeSettingsConnectedCloud")}
/>
) : null*/}
) : null}
</TreeNode>
);
};

View File

@ -168,8 +168,6 @@ const SectionBodyContent = ({
if (setting === "admin" && isAdmin) content = renderAdminSettings();
if (setting === "common") content = renderCommonSettings();
if (setting === "thirdParty" && enableThirdParty) content = <ConnectClouds />;
//if (setting === "thirdparty" && enableThirdParty)
// content = renderCommonSettings(); //renderClouds();
return isLoading ? null : (!enableThirdParty && setting === "thirdParty") ||
(!isAdmin && setting === "admin") ? (

View File

@ -51,8 +51,7 @@ const PureSettings = ({
setTitle("AdminSettings");
break;
case "thirdParty":
//setTitle("ThirdPartySettings");
history.push("/products/files/settings/common");
setTitle("ThirdPartySettings");
break;
default:
setTitle("CommonSettings");