diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2019-10-02 20:12:44 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2019-10-02 20:12:44 +0000 |
| commit | 84dbc86624376bb272a7fc1f1cc57a027f1470ce (patch) | |
| tree | 6ad9102f5fc74fec7724eaadd5c59440b0c8a93d /src | |
| parent | f3fdc92f15312fc5c79da90ab37a26827e80f202 (diff) | |
| parent | 33759e41537f92c560df3d08f66207cd8ab2219b (diff) | |
Merge branch 'admin-link' into 'develop'
Add Admin panel link to navigation for admins
See merge request pleroma/pleroma-fe!954
Diffstat (limited to 'src')
| -rw-r--r-- | src/App.vue | 9 | ||||
| -rw-r--r-- | src/components/side_drawer/side_drawer.vue | 11 | ||||
| -rw-r--r-- | src/i18n/en.json | 1 |
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", |
