From 9767111de30e54eb3b71e4606f69e33505373458 Mon Sep 17 00:00:00 2001 From: gopienkonikita Date: Mon, 11 Jan 2021 13:34:29 +0300 Subject: [PATCH] Web: Files: fixed thirdparty route --- .../Client/src/components/Article/Body/TreeSettings.js | 4 ++-- .../src/components/pages/Settings/Section/Body/index.js | 2 -- .../ASC.Files/Client/src/components/pages/Settings/index.js | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/products/ASC.Files/Client/src/components/Article/Body/TreeSettings.js b/products/ASC.Files/Client/src/components/Article/Body/TreeSettings.js index a1d802b549..1eab831826 100644 --- a/products/ASC.Files/Client/src/components/Article/Body/TreeSettings.js +++ b/products/ASC.Files/Client/src/components/Article/Body/TreeSettings.js @@ -153,7 +153,7 @@ const PureTreeSettings = ({ title={t("TreeSettingsAdminSettings")} /> ) : null} - {/*enableThirdParty ? ( + {enableThirdParty ? ( - ) : null*/} + ) : null} ); }; diff --git a/products/ASC.Files/Client/src/components/pages/Settings/Section/Body/index.js b/products/ASC.Files/Client/src/components/pages/Settings/Section/Body/index.js index 2123392363..62699411d9 100644 --- a/products/ASC.Files/Client/src/components/pages/Settings/Section/Body/index.js +++ b/products/ASC.Files/Client/src/components/pages/Settings/Section/Body/index.js @@ -168,8 +168,6 @@ const SectionBodyContent = ({ if (setting === "admin" && isAdmin) content = renderAdminSettings(); if (setting === "common") content = renderCommonSettings(); if (setting === "thirdParty" && enableThirdParty) content = ; - //if (setting === "thirdparty" && enableThirdParty) - // content = renderCommonSettings(); //renderClouds(); return isLoading ? null : (!enableThirdParty && setting === "thirdParty") || (!isAdmin && setting === "admin") ? ( diff --git a/products/ASC.Files/Client/src/components/pages/Settings/index.js b/products/ASC.Files/Client/src/components/pages/Settings/index.js index f71cdc315a..b2328915ff 100644 --- a/products/ASC.Files/Client/src/components/pages/Settings/index.js +++ b/products/ASC.Files/Client/src/components/pages/Settings/index.js @@ -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");