From 75427e1021bbd7131f650bc1b5b533b7234eb623 Mon Sep 17 00:00:00 2001 From: Menaka Jayawardena Date: Fri, 6 Oct 2017 02:56:40 +0530 Subject: [PATCH] Added user name to the header. --- .../AppPublisherBase/BaseLayout.jsx | 59 +++++++++++-------- 1 file changed, 36 insertions(+), 23 deletions(-) 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 e0c8b905f1..eb64ab434a 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,7 +19,6 @@ 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'; @@ -50,7 +49,7 @@ class BaseLayout extends Component { } componentWillMount() { - + this.setState({user: this.props.user}); } handleApplicationClick() { @@ -86,29 +85,43 @@ class BaseLayout extends Component { } render() { + const userName = this.state.user._userName[0]; return (
-
- -