From f5d754d15998b01398fdce7f8ec8cf12e4e6ff45 Mon Sep 17 00:00:00 2001 From: shamalka Date: Fri, 6 Dec 2019 12:05:17 +0530 Subject: [PATCH] Add footer text of app manager UI to config --- .../react-app/public/conf/config.json | 3 ++- .../react-app/src/pages/dashboard/Dashboard.js | 3 ++- .../react-app/public/conf/config.json | 3 ++- .../react-app/src/pages/dashboard/Dashboard.js | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/public/conf/config.json b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/public/conf/config.json index 65013996e06..9d78b679068 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/public/conf/config.json +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/public/conf/config.json @@ -1,7 +1,8 @@ { "theme": { "logo": "https://entgra.io/assets/images/svg/logo.svg", - "primaryColor": "rgb(24, 144, 255)" + "primaryColor": "rgb(24, 144, 255)", + "footerText": "©2019 entgra.io" }, "serverConfig": { "invoker": { diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/Dashboard.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/Dashboard.js index 802ddc5bd87..ba2a948dd03 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/Dashboard.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/Dashboard.js @@ -38,6 +38,7 @@ class Dashboard extends React.Component { }; this.config = this.props.context; this.Logo = this.config.theme.logo; + this.footerText = this.config.theme.footerText; } showMobileNavigationBar = () => { @@ -217,7 +218,7 @@ class Dashboard extends React.Component { diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/public/conf/config.json b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/public/conf/config.json index 0d1b5d86f46..3d87e31b9ba 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/public/conf/config.json +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/public/conf/config.json @@ -3,7 +3,8 @@ "type": "default", "value": "lightBaseTheme", "logo" : "https://entgra.io/assets/images/svg/logo.svg", - "primaryColor": "rgb(24, 144, 255)" + "primaryColor": "rgb(24, 144, 255)", + "footerText": "©2019 entgra.io" }, "serverConfig": { "invokerUri": "/ui-request-handler/invoke/application-mgt-store/v1.0", diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/Dashboard.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/Dashboard.js index b0a5108ddf4..ecf487c1d2b 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/Dashboard.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/Dashboard.js @@ -45,6 +45,7 @@ class Dashboard extends React.Component { } }; this.logo = this.props.context.theme.logo; + this.footerText = this.props.context.theme.footerText; this.config = this.props.context; } @@ -228,7 +229,7 @@ class Dashboard extends React.Component {