From 093fcee902e664617a833cc21a80eb7e22cc441f Mon Sep 17 00:00:00 2001
From: taehoon <th.dev91@gmail.com>
Date: Sat, 14 Sep 2019 13:53:03 -0400
Subject: add admin link to the side drawer

---
 src/components/side_drawer/side_drawer.vue | 8 ++++++++
 1 file changed, 8 insertions(+)

(limited to 'src/components/side_drawer/side_drawer.vue')

diff --git a/src/components/side_drawer/side_drawer.vue b/src/components/side_drawer/side_drawer.vue
index 5b2d4473..25f9c0c8 100644
--- a/src/components/side_drawer/side_drawer.vue
+++ b/src/components/side_drawer/side_drawer.vue
@@ -122,6 +122,14 @@
             {{ $t("nav.about") }}
           </router-link>
         </li>
+        <li
+          v-if="currentUser && currentUser.role === 'admin'"
+          @click="toggleDrawer"
+        >
+          <a href="/pleroma/admin">
+            {{ $t("nav.admin_panel") }}
+          </a>
+        </li>
         <li
           v-if="currentUser"
           @click="toggleDrawer"
-- 
cgit v1.2.3-70-g09d2

