From 4f75ad9905005beba07744f33273c2e745e78d2e Mon Sep 17 00:00:00 2001 From: taehoon <th.dev91@gmail.com> Date: Sat, 14 Sep 2019 13:50:03 -0400 Subject: [PATCH] add admin link to nav --- src/App.vue | 8 ++++++++ src/i18n/en.json | 1 + 2 files changed, 9 insertions(+) diff --git a/src/App.vue b/src/App.vue index 8d7f6c79..5d502f26 100644 --- a/src/App.vue +++ b/src/App.vue @@ -53,6 +53,14 @@ :title="$t('nav.preferences')" /> </router-link> + <a + v-if="currentUser && currentUser.role === 'admin'" + href="/pleroma/admin" + class="mobile-hidden" + ><i + class="button-icon icon-gauge nav-icon" + :title="$t('nav.admin_panel')" + /></a> <a v-if="currentUser" href="#" diff --git a/src/i18n/en.json b/src/i18n/en.json index 52cf0f36..389e84c8 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -68,6 +68,7 @@ }, "nav": { "about": "About", + "admin_panel": "Admin Panel", "back": "Back", "chat": "Local Chat", "friend_requests": "Follow Requests",