adata-ui 0.3.25 → 0.3.26

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": "adata-ui",
3
- "version": "0.3.25",
3
+ "version": "0.3.26",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -57,7 +57,7 @@
57
57
  </svg>
58
58
  Найти
59
59
  </div>
60
- <a v-show="hasFavourites" :href="main[mode] + '/favourites'" target="_blank">
60
+ <a v-show="hasFavourites" :href="main[mode] + '/favourites' + `${tab ? '?tab=' + tab : ''}`" target="_blank">
61
61
  <div class="favorite-btn">
62
62
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
63
63
  <path d="M3 2.5V14.0057C3 14.4167 3.46826 14.6521 3.79816 14.4071L7.70184 11.5072C7.87886 11.3757 8.12114 11.3757 8.29816 11.5072L12.2018 14.4071C12.5317 14.6521 13 14.4167 13 14.0057V2.5C13 2.22386 12.7761 2 12.5 2H3.5C3.22386 2 3 2.22386 3 2.5Z" stroke="#2C3E50" stroke-linecap="round" stroke-linejoin="round"/>
@@ -75,6 +75,7 @@
75
75
  :loginUrl="loginUrl"
76
76
  :rate="rate"
77
77
  :balance="this.thousandSeparator(balance)"
78
+ :tab="tab"
78
79
  @showBalanceModal="
79
80
  (val) => {
80
81
  $emit('showBalanceModal', val);
@@ -547,6 +548,10 @@ export default {
547
548
  hasSearchField: {
548
549
  type: Boolean,
549
550
  default: false
551
+ },
552
+ tab: {
553
+ type: String,
554
+ default: ""
550
555
  }
551
556
  },
552
557
  data() {
@@ -56,7 +56,16 @@
56
56
  </div>
57
57
  </div>
58
58
  <SlideToggle v-slot="{ animationClass }">
59
- <profile-menu v-if="isAuthenticated" v-show="active" :class="animationClass" @logout="logout" :balance="balance" :rate="rate" :mode="mode" />
59
+ <profile-menu
60
+ v-if="isAuthenticated"
61
+ v-show="active"
62
+ :class="animationClass"
63
+ @logout="logout"
64
+ :balance="balance"
65
+ :rate="rate"
66
+ :mode="mode"
67
+ :tab="tab"
68
+ />
60
69
  </SlideToggle>
61
70
  </div>
62
71
  </div>
@@ -105,6 +114,10 @@ export default {
105
114
  balance: {
106
115
  type: [Number, String],
107
116
  default: 0
117
+ },
118
+ tab: {
119
+ type: String,
120
+ default: ""
108
121
  }
109
122
  },
110
123
  components: {
@@ -55,7 +55,7 @@
55
55
  </div>
56
56
  <div class="profile-link__text">Профиль Работа</div>
57
57
  </a>
58
- <a :href="links.favourites[mode] + hasTab" onclick="`return false`" class="profile-link" target="_blank">
58
+ <a :href="links.favourites[mode] + `${tab ? '?tab=' + tab : ''}`" onclick="`return false`" class="profile-link" target="_blank">
59
59
  <div class="profile-link__icon">
60
60
  <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
61
61
  <path d="M5 2H19C19.2652 2 19.5196 2.10536 19.7071 2.29289C19.8946 2.48043 20 2.73478 20 3V22.143C20.0001 22.2324 19.9763 22.3202 19.9309 22.3973C19.8855 22.4743 19.8204 22.5378 19.7421 22.5811C19.6639 22.6244 19.5755 22.6459 19.4861 22.6434C19.3968 22.641 19.3097 22.6146 19.234 22.567L12 18.03L4.766 22.566C4.69037 22.6135 4.60339 22.6399 4.5141 22.6424C4.42482 22.6449 4.33649 22.6235 4.2583 22.5803C4.1801 22.5371 4.11491 22.4738 4.06948 22.3969C4.02406 22.32 4.00007 22.2323 4 22.143V3C4 2.73478 4.10536 2.48043 4.29289 2.29289C4.48043 2.10536 4.73478 2 5 2ZM18 4H6V19.432L12 15.671L18 19.432V4Z" fill="#2C3E50"/>
@@ -89,6 +89,10 @@ export default {
89
89
  balance: {
90
90
  type: String,
91
91
  required: true
92
+ },
93
+ tab: {
94
+ type: String,
95
+ default: ""
92
96
  }
93
97
  },
94
98
  data() {
@@ -121,11 +125,6 @@ export default {
121
125
  },
122
126
  }
123
127
  }
124
- },
125
- computed: {
126
- hasTab() {
127
- return window.location.href.includes("avto") ? "?tab=fines" : ""
128
- }
129
128
  }
130
129
  }
131
130
  </script>