From f8404fc9a980740e44aa5218542bec5c048dfc1d Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Fri, 19 Nov 2021 19:55:43 +0100 Subject: [PATCH] link to admin if `isAdmin` is true --- frontend/.env.dist | 3 ++- frontend/src/components/SidebarPlugin/SideBar.vue | 13 +++++++++++++ frontend/src/config/index.js | 5 +++-- frontend/src/store/store.js | 1 + 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/frontend/.env.dist b/frontend/.env.dist index 8d4025a5d..80dafb7f9 100644 --- a/frontend/.env.dist +++ b/frontend/.env.dist @@ -1,3 +1,4 @@ GRAPHQL_URI=http://localhost:4000/graphql DEFAULT_PUBLISHER_ID=2896 -//BUILD_COMMIT=0000000 \ No newline at end of file +#BUILD_COMMIT=0000000 +ADMIN_AUTH_URL=http://localhost/admin/authenticate?token=$1 \ No newline at end of file diff --git a/frontend/src/components/SidebarPlugin/SideBar.vue b/frontend/src/components/SidebarPlugin/SideBar.vue index c33c132b0..d8b26318f 100755 --- a/frontend/src/components/SidebarPlugin/SideBar.vue +++ b/frontend/src/components/SidebarPlugin/SideBar.vue @@ -45,6 +45,7 @@
+ + +