File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 8
8
<NcAppNavigationItem icon="icon-user"
9
9
:name="t('libresign', 'Account')"
10
10
:to=" {name: 'Account'} " />
11
+ <NcAppNavigationItem v-if="isAdmin"
12
+ :name="t('libresign', 'Administration')"
13
+ :href="getAdminRoute()">
14
+ <template #icon>
15
+ <TuneIcon :size="20" />
16
+ </template>
17
+ </NcAppNavigationItem>
11
18
<NcAppNavigationItem :name="t('libresign', 'Rate LibreSign ❤️')"
12
19
href="https://apps.nextcloud.com/apps/libresign#comments">
13
20
<template #icon>
19
26
20
27
<script>
21
28
import StarIcon from 'vue-material-design-icons/Star.vue'
29
+ import TuneIcon from 'vue-material-design-icons/Tune.vue'
30
+
31
+ import { getCurrentUser } from '@nextcloud/auth'
32
+ import { generateUrl } from '@nextcloud/router'
22
33
23
34
import NcAppNavigationItem from '@nextcloud/vue/components/NcAppNavigationItem'
24
35
@@ -27,6 +38,17 @@ export default {
27
38
components: {
28
39
NcAppNavigationItem,
29
40
StarIcon,
41
+ TuneIcon,
42
+ },
43
+ data() {
44
+ return {
45
+ isAdmin: getCurrentUser().isAdmin,
46
+ }
47
+ },
48
+ methods: {
49
+ getAdminRoute() {
50
+ return generateUrl('settings/admin/libresign')
51
+ },
30
52
},
31
53
}
32
54
</script>
You can’t perform that action at this time.
0 commit comments