@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.
@@ -1 +1 @@
1
- 0.0.112
1
+ 0.0.113
package/package.json CHANGED
@@ -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",
@@ -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">
@@ -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