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: add admin link to nav

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

(limited to 'src/App.vue')

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="#"
-- 
cgit v1.2.3-70-g09d2


From d9b01643e235cad56e83c1ac7180cd2f25ba7170 Mon Sep 17 00:00:00 2001
From: taehoon <th.dev91@gmail.com>
Date: Mon, 16 Sep 2019 08:03:10 -0400
Subject: open in a new tab

---
 src/App.vue                                | 1 +
 src/components/side_drawer/side_drawer.vue | 5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)

(limited to 'src/App.vue')

diff --git a/src/App.vue b/src/App.vue
index 5d502f26..a7a2b340 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -57,6 +57,7 @@
             v-if="currentUser && currentUser.role === 'admin'"
             href="/pleroma/admin"
             class="mobile-hidden"
+            target="_blank"
           ><i
             class="button-icon icon-gauge nav-icon"
             :title="$t('nav.admin_panel')"
diff --git a/src/components/side_drawer/side_drawer.vue b/src/components/side_drawer/side_drawer.vue
index 25f9c0c8..78f269d4 100644
--- a/src/components/side_drawer/side_drawer.vue
+++ b/src/components/side_drawer/side_drawer.vue
@@ -126,7 +126,10 @@
           v-if="currentUser && currentUser.role === 'admin'"
           @click="toggleDrawer"
         >
-          <a href="/pleroma/admin">
+          <a
+            href="/pleroma/admin"
+            target="_blank"
+          >
             {{ $t("nav.admin_panel") }}
           </a>
         </li>
-- 
cgit v1.2.3-70-g09d2


From 503f086487e05d94058531269a9be64bf0deeb2a Mon Sep 17 00:00:00 2001
From: taehoon <th.dev91@gmail.com>
Date: Thu, 26 Sep 2019 21:24:40 -0400
Subject: add trailing slash to admin url

---
 src/App.vue                                | 2 +-
 src/components/side_drawer/side_drawer.vue | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/App.vue')

diff --git a/src/App.vue b/src/App.vue
index a7a2b340..855d7d8c 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -55,7 +55,7 @@
           </router-link>
           <a
             v-if="currentUser && currentUser.role === 'admin'"
-            href="/pleroma/admin"
+            href="/pleroma/admin/"
             class="mobile-hidden"
             target="_blank"
           ><i
diff --git a/src/components/side_drawer/side_drawer.vue b/src/components/side_drawer/side_drawer.vue
index 78f269d4..0e6ea2cb 100644
--- a/src/components/side_drawer/side_drawer.vue
+++ b/src/components/side_drawer/side_drawer.vue
@@ -127,7 +127,7 @@
           @click="toggleDrawer"
         >
           <a
-            href="/pleroma/admin"
+            href="/pleroma/admin/"
             target="_blank"
           >
             {{ $t("nav.admin_panel") }}
-- 
cgit v1.2.3-70-g09d2


From 7e5a3fa09f14b9580c79917e2832ac2229efefd9 Mon Sep 17 00:00:00 2001
From: taehoon <th.dev91@gmail.com>
Date: Thu, 26 Sep 2019 21:29:51 -0400
Subject: update copy

---
 src/App.vue                                | 2 +-
 src/components/side_drawer/side_drawer.vue | 2 +-
 src/i18n/en.json                           | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/App.vue')

diff --git a/src/App.vue b/src/App.vue
index 855d7d8c..47da6064 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -60,7 +60,7 @@
             target="_blank"
           ><i
             class="button-icon icon-gauge nav-icon"
-            :title="$t('nav.admin_panel')"
+            :title="$t('nav.administration')"
           /></a>
           <a
             v-if="currentUser"
diff --git a/src/components/side_drawer/side_drawer.vue b/src/components/side_drawer/side_drawer.vue
index 0e6ea2cb..ba0b6fea 100644
--- a/src/components/side_drawer/side_drawer.vue
+++ b/src/components/side_drawer/side_drawer.vue
@@ -130,7 +130,7 @@
             href="/pleroma/admin/"
             target="_blank"
           >
-            {{ $t("nav.admin_panel") }}
+            {{ $t("nav.administration") }}
           </a>
         </li>
         <li
diff --git a/src/i18n/en.json b/src/i18n/en.json
index 389e84c8..32c25e3e 100644
--- a/src/i18n/en.json
+++ b/src/i18n/en.json
@@ -68,7 +68,7 @@
   },
   "nav": {
     "about": "About",
-    "admin_panel": "Admin Panel",
+    "administration": "Administration",
     "back": "Back",
     "chat": "Local Chat",
     "friend_requests": "Follow Requests",
-- 
cgit v1.2.3-70-g09d2


From 33759e41537f92c560df3d08f66207cd8ab2219b Mon Sep 17 00:00:00 2001
From: taehoon <th.dev91@gmail.com>
Date: Wed, 2 Oct 2019 13:28:16 -0400
Subject: update admin url

---
 src/App.vue                                | 2 +-
 src/components/side_drawer/side_drawer.vue | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/App.vue')

diff --git a/src/App.vue b/src/App.vue
index 47da6064..dbe842ec 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -55,7 +55,7 @@
           </router-link>
           <a
             v-if="currentUser && currentUser.role === 'admin'"
-            href="/pleroma/admin/"
+            href="/pleroma/admin/#/login-pleroma"
             class="mobile-hidden"
             target="_blank"
           ><i
diff --git a/src/components/side_drawer/side_drawer.vue b/src/components/side_drawer/side_drawer.vue
index ba0b6fea..214b8e0c 100644
--- a/src/components/side_drawer/side_drawer.vue
+++ b/src/components/side_drawer/side_drawer.vue
@@ -127,7 +127,7 @@
           @click="toggleDrawer"
         >
           <a
-            href="/pleroma/admin/"
+            href="/pleroma/admin/#/login-pleroma"
             target="_blank"
           >
             {{ $t("nav.administration") }}
-- 
cgit v1.2.3-70-g09d2

