RubyGems
npm
Organizations
Log in
Sign up
npm
@afeefa/vue-app
Versions diffs
0.0.112 → 0.0.113
@afeefa/vue-app 0.0.112 → 0.0.113
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (4)
hide
show
package/.afeefa/package/release/version.txt
+1
-1
package/package.json
+1
-1
package/src-admin/components/App.vue
+3
-0
package/src-admin/plugins/AuthPlugin.js
+2
-0
package/.afeefa/package/release/version.txt
CHANGED
Viewed
@@ -1 +1 @@
1
-
0.0.
112
1
+
0.0.
113
package/package.json
CHANGED
Viewed
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "@afeefa/vue-app",
3
-
"version": "0.0.
112
",
3
+
"version": "0.0.
113
",
4
4
"description": "",
5
5
"author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
"license": "MIT",
package/src-admin/components/App.vue
CHANGED
Viewed
@@ -50,6 +50,9 @@
50
50
<div>
51
51
<div class="accountName">
52
52
{{ account.first_name }}
53
+
<template v-if="$auth.roles()[0]">
54
+
({{ $auth.roles()[0].title }})
55
+
</template>
53
56
</div>
54
57
55
58
<div class="body-2 d-flex align-center">
package/src-admin/plugins/AuthPlugin.js
CHANGED
Viewed
@@ -10,6 +10,8 @@ class AuthPlugin {
10
10
11
11
hasRole: name => authService.currentAccountHasRole(name),
12
12
13
+
roles: () => authService.getCurrentAccountRoles(),
14
+
13
15
logout: () => authService.forwardToLogoutEndpoint()
14
16
}
15
17