@magicgol/polyjuice 0.56.0 → 0.56.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magicgol/polyjuice",
3
- "version": "0.56.0",
3
+ "version": "0.56.2",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -20,7 +20,6 @@
20
20
  <span v-else-if="hasName">
21
21
  <span class="mg-h-footballer-strong">{{ lastname }}</span>, <span>{{ firstname }}</span>
22
22
  </span>
23
- <span v-else>&ndash;</span>
24
23
  </div>
25
24
  <div
26
25
  v-if="slotVisibility"
@@ -29,7 +28,10 @@
29
28
  </div>
30
29
  <!-- end of FOOTBALLER NAME -->
31
30
  <!-- ROLE BADGE -->
32
- <div v-bind:class="{'pl-2': inverted, 'pr-2': !inverted}">
31
+ <div
32
+ v-bind:class="{'pl-2': inverted, 'pr-2': !inverted}"
33
+ v-if="showRole"
34
+ >
33
35
  <mg-role-badge
34
36
  :role="role"
35
37
  :size="size"
@@ -63,6 +65,10 @@ export default {
63
65
  type: Boolean,
64
66
  default: false,
65
67
  },
68
+ showRole: {
69
+ type: Boolean,
70
+ default: true
71
+ },
66
72
  role: {
67
73
  type: String,
68
74
  default: null,