aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/App.vue9
-rw-r--r--src/components/side_drawer/side_drawer.vue11
-rw-r--r--src/i18n/en.json1
3 files changed, 21 insertions, 0 deletions
diff --git a/src/App.vue b/src/App.vue
index 8d7f6c79..dbe842ec 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -54,6 +54,15 @@
/>
</router-link>
<a
+ v-if="currentUser && currentUser.role === 'admin'"
+ href="/pleroma/admin/#/login-pleroma"
+ class="mobile-hidden"
+ target="_blank"
+ ><i
+ class="button-icon icon-gauge nav-icon"
+ :title="$t('nav.administration')"
+ /></a>
+ <a
v-if="currentUser"
href="#"
class="mobile-hidden"
diff --git a/src/components/side_drawer/side_drawer.vue b/src/components/side_drawer/side_drawer.vue
index 5b2d4473..214b8e0c 100644
--- a/src/components/side_drawer/side_drawer.vue
+++ b/src/components/side_drawer/side_drawer.vue
@@ -123,6 +123,17 @@
</router-link>
</li>
<li
+ v-if="currentUser && currentUser.role === 'admin'"
+ @click="toggleDrawer"
+ >
+ <a
+ href="/pleroma/admin/#/login-pleroma"
+ target="_blank"
+ >
+ {{ $t("nav.administration") }}
+ </a>
+ </li>
+ <li
v-if="currentUser"
@click="toggleDrawer"
>
diff --git a/src/i18n/en.json b/src/i18n/en.json
index 52cf0f36..32c25e3e 100644
--- a/src/i18n/en.json
+++ b/src/i18n/en.json
@@ -68,6 +68,7 @@
},
"nav": {
"about": "About",
+ "administration": "Administration",
"back": "Back",
"chat": "Local Chat",
"friend_requests": "Follow Requests",