diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/public/images/logo.png b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/public/images/logo.png new file mode 100644 index 0000000000..2cf18f9cfd Binary files /dev/null and b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/public/images/logo.png differ diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/AppPublisherBase/BaseLayout.jsx b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/AppPublisherBase/BaseLayout.jsx index 74c39ba66c..73cc87bd9d 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/AppPublisherBase/BaseLayout.jsx +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/AppPublisherBase/BaseLayout.jsx @@ -19,6 +19,7 @@ import PropTypes from 'prop-types'; import React, {Component} from 'react'; import {withRouter} from 'react-router-dom'; +import Axios from 'axios'; import AuthHandler from "../../api/authHandler"; import {Button, Col, Container, Input, Row,} from 'reactstrap'; import ApplicationCreate from '../Application/Create/ApplicationCreate'; @@ -42,9 +43,20 @@ class BaseLayout extends Component { notifications: 0, user: 'Admin', openModal: false, - currentPage: "Applications" + currentPage: "Applications", + logo: {} }; + } + componentWillMount() { + Axios.get("/images/logo.png", {responseType: 'arraybuffer'}).then( + response => { + let image = "data:image/jpeg;base64," + new Buffer(response.data, 'binary').toString('base64'); + this.setState({logo: image}); + } + ).catch(err => { + console.log(err); + }); } handleApplicationClick() { @@ -84,25 +96,26 @@ class BaseLayout extends Component {
-