@burh/nuxt-core 1.0.130 → 1.0.131

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.
@@ -15,35 +15,9 @@
15
15
  <slot name="brand-center" />
16
16
  </div>
17
17
 
18
- <a v-if="currentUser" :href="urlBackToBusiness" class="btn btn-link">
19
- Voltar para o Burh
20
- </a>
21
-
22
- <!-- <app-link-area
23
- v-if="currentUser != null"
24
- :showableProducts="showableProducts"
25
- :activeProducts="activeProducts"
26
- :apps="gridApps"
27
- />
28
- <user-menu-dropdown
29
- :text="userMenuText"
30
- :userAvatar="currentUser.avatar"
31
- :userName="currentUser.name"
32
- :companies="currentUser.companies"
33
- :companyLogo="currentCompany.logo"
34
- :companyName="currentCompany.name"
35
- >
36
- <avatar-link
37
- slot="companies"
38
- v-for="company in currentUser.companies"
39
- :key="company.name"
40
- :logo="company.logo"
41
- :name="company.name"
42
- class="dropdown-item"
43
- :data="company"
44
- @avatar-click="handleAvatarClick(company)"
45
- />
46
- </user-menu-dropdown> -->
18
+ <a v-if="currentUser && !disabledLinks" :href="urlBackToBusiness" class="btn btn-link">
19
+ Voltar para o Burh
20
+ </a>
47
21
  </base-nav>
48
22
  </template>
49
23
  <script>
@@ -68,6 +42,7 @@ export default {
68
42
  showableProducts: Object,
69
43
  activeProducts: Array,
70
44
  gridApps: Array,
45
+ disabledLinks: Boolean
71
46
  },
72
47
  data() {
73
48
  return {
@@ -81,7 +56,8 @@ export default {
81
56
  this.$emit('company-click', company);
82
57
  },
83
58
  redirectIndex() {
84
- this.$router.push(this.indexRoute);
59
+ if (!this.disabledLinks)
60
+ this.$router.push(this.indexRoute);
85
61
  },
86
62
  getCurrentApp(){
87
63
  this.indexRoute = `/${this.$route.path.split('/')[1]}`
@@ -89,7 +65,6 @@ export default {
89
65
  },
90
66
  mounted(){
91
67
  this.getCurrentApp();
92
-
93
68
  }
94
69
  };
95
70
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.130",
3
+ "version": "1.0.131",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {