From 8efae2617d3f0bc93e692fe78c53221f7a50b2e7 Mon Sep 17 00:00:00 2001 From: Viktor Fomin Date: Wed, 6 Apr 2022 17:10:49 +0300 Subject: [PATCH] Web: Client: Settings: init admin message setting --- .../security/access-portal/adminMessage.js | 7 +++++++ .../categories/security/access-portal/index.js | 7 +++++++ .../categories/security/access-portal/mobileView.js | 6 ++++++ .../src/components/pages/Settings/index.js | 12 ++++++++++++ .../components/pages/Settings/utils/settingsTree.js | 6 ++++++ 5 files changed, 38 insertions(+) create mode 100644 web/ASC.Web.Client/src/components/pages/Settings/categories/security/access-portal/adminMessage.js diff --git a/web/ASC.Web.Client/src/components/pages/Settings/categories/security/access-portal/adminMessage.js b/web/ASC.Web.Client/src/components/pages/Settings/categories/security/access-portal/adminMessage.js new file mode 100644 index 0000000000..42d893d9c8 --- /dev/null +++ b/web/ASC.Web.Client/src/components/pages/Settings/categories/security/access-portal/adminMessage.js @@ -0,0 +1,7 @@ +import React from "react"; + +const AdminMessage = () => { + return

Admin message

; +}; + +export default AdminMessage; diff --git a/web/ASC.Web.Client/src/components/pages/Settings/categories/security/access-portal/index.js b/web/ASC.Web.Client/src/components/pages/Settings/categories/security/access-portal/index.js index 46a2ba2932..094173db4f 100644 --- a/web/ASC.Web.Client/src/components/pages/Settings/categories/security/access-portal/index.js +++ b/web/ASC.Web.Client/src/components/pages/Settings/categories/security/access-portal/index.js @@ -8,6 +8,7 @@ import TfaSection from "./tfa"; import PasswordStrengthSection from "./passwordStrength"; import TrustedMailSection from "./trustedMail"; import IpSecuritySection from "./ipSecurity"; +import AdminMessageSection from "./adminMessage"; import MobileView from "./mobileView"; import CategoryWrapper from "../sub-components/category-wrapper"; import { size } from "@appserver/components/utils/device"; @@ -56,6 +57,12 @@ const AccessPortal = (props) => { tooltipContent={t("IPSecurityDescription")} /> +
+ + ); }; diff --git a/web/ASC.Web.Client/src/components/pages/Settings/categories/security/access-portal/mobileView.js b/web/ASC.Web.Client/src/components/pages/Settings/categories/security/access-portal/mobileView.js index b58ba22217..c0b865410b 100644 --- a/web/ASC.Web.Client/src/components/pages/Settings/categories/security/access-portal/mobileView.js +++ b/web/ASC.Web.Client/src/components/pages/Settings/categories/security/access-portal/mobileView.js @@ -43,6 +43,12 @@ const MobileView = (props) => { url="/settings/security/access-portal/ip" onClickLink={onClickLink} /> + ); }; diff --git a/web/ASC.Web.Client/src/components/pages/Settings/index.js b/web/ASC.Web.Client/src/components/pages/Settings/index.js index 393dd6a077..4b3aa6b1ba 100644 --- a/web/ASC.Web.Client/src/components/pages/Settings/index.js +++ b/web/ASC.Web.Client/src/components/pages/Settings/index.js @@ -17,6 +17,9 @@ const TrustedMailPage = lazy(() => const IpSecurityPage = lazy(() => import("./categories/security/access-portal/ipSecurity") ); +const AdminMessagePage = lazy(() => + import("./categories/security/access-portal/adminMessage") +); const CommonSettings = lazy(() => import("./categories/common/index.js")); @@ -99,6 +102,10 @@ const IP_SECURITY_PAGE_URL = combineUrl( PROXY_BASE_URL, "/security/access-portal/ip" ); +const ADMIN_MESSAGE_PAGE_URL = combineUrl( + PROXY_BASE_URL, + "/security/access-portal/admin-message" +); const ADMINS_URL = combineUrl(PROXY_BASE_URL, "/security/access-rights/admins"); const THIRD_PARTY_URL = combineUrl( @@ -148,6 +155,11 @@ const Settings = () => { component={TrustedMailPage} /> +