From 8a514334ae2a6e02cc1e254d29b229b2750eec7d Mon Sep 17 00:00:00 2001 From: Daniel Kos Date: Wed, 6 Jun 2018 16:38:18 +0200 Subject: [PATCH 1/1] Add better layout for user name on the appbar Feature #13563 Arvados-DCO-1.1-Signed-off-by: Daniel Kos : --- src/services/auth-service/auth-service.ts | 1 - src/views/workbench/workbench.tsx | 29 +++++++++++++---------- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/src/services/auth-service/auth-service.ts b/src/services/auth-service/auth-service.ts index 5a08d3b5..12c5b680 100644 --- a/src/services/auth-service/auth-service.ts +++ b/src/services/auth-service/auth-service.ts @@ -2,7 +2,6 @@ // // SPDX-License-Identifier: AGPL-3.0 -import Axios from "axios"; import { API_HOST } from "../../common/server-api"; import { User } from "../../models/user"; diff --git a/src/views/workbench/workbench.tsx b/src/views/workbench/workbench.tsx index 38c3f042..b5babde1 100644 --- a/src/views/workbench/workbench.tsx +++ b/src/views/workbench/workbench.tsx @@ -23,6 +23,7 @@ import Menu from "@material-ui/core/Menu/Menu"; import MenuItem from "@material-ui/core/MenuItem/MenuItem"; import { AccountCircle } from "@material-ui/icons"; import { User } from "../../models/user"; +import Grid from "@material-ui/core/Grid/Grid"; const drawerWidth = 240; @@ -109,17 +110,21 @@ class Workbench extends React.Component { Arvados
Workbench 2 {user ? -
- - {user.firstName} {user.lastName} - - - - + + + + {user.firstName} {user.lastName} + + + + + + + { Logout My account -
+ : } -- 2.30.2