From c715ebd481259d96a12b3cde8f1265568d4e9989 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Thu, 20 Feb 2020 22:27:48 +0800 Subject: [PATCH] current user --- frontend/src/common/constants.js | 6 ++ .../src/performance/components/HeaderUser.vue | 25 +++-- .../components/settings/CurrentUser.vue | 36 ++++--- .../components/settings/SettingMenu.vue | 102 +++++++++--------- 4 files changed, 96 insertions(+), 73 deletions(-) diff --git a/frontend/src/common/constants.js b/frontend/src/common/constants.js index 7bdfc87370..2c173d792e 100644 --- a/frontend/src/common/constants.js +++ b/frontend/src/common/constants.js @@ -1 +1,7 @@ export const TokenKey = 'Admin-Token'; + +export const ROLE_ADMIN = 'admin'; +export const ROLE_ORG_ADMIN = 'org_admin'; +export const ROLE_TEST_MANAGER = 'test_manager'; +export const ROLE_TEST_USER = 'test_user'; +export const ROLE_TEST_VIEWER = 'test_viewer'; diff --git a/frontend/src/performance/components/HeaderUser.vue b/frontend/src/performance/components/HeaderUser.vue index 758741c1c8..0abba4a06a 100644 --- a/frontend/src/performance/components/HeaderUser.vue +++ b/frontend/src/performance/components/HeaderUser.vue @@ -6,7 +6,7 @@ class="header-user-menu" background-color="rgb(44, 42, 72)" text-color="#fff"> - + - +