@webitel/ui-sdk 3.2.5 → 3.2.7

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": "@webitel/ui-sdk",
3
- "version": "3.2.5",
3
+ "version": "3.2.7",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -17,7 +17,7 @@
17
17
  :disabled="primaryDisabled"
18
18
  @click="primaryAction"
19
19
  >
20
- {{ primaryText || t('reusable.add') }}
20
+ {{ primaryText || $t('reusable.add') }}
21
21
  </wt-button>
22
22
  </slot>
23
23
  <wt-button
@@ -25,18 +25,15 @@
25
25
  color="secondary"
26
26
  @click="secondaryAction"
27
27
  >
28
- {{ secondaryText || t('reusable.close') }}
28
+ {{ secondaryText || $t('reusable.close') }}
29
29
  </wt-button>
30
30
  </template>
31
31
  </wt-headline>
32
32
  </template>
33
33
 
34
34
  <script setup>
35
- import { useI18n } from 'vue-i18n';
36
35
  import { computed } from 'vue';
37
36
 
38
- const { t } = useI18n();
39
-
40
37
  const props = defineProps({
41
38
  hidePrimary: {
42
39
  type: Boolean,
@@ -50,6 +50,13 @@ export default class TableStoreModule extends BaseStoreModule {
50
50
  AFTER_SET_DATA_LIST_HOOK: (context, { items, next }) => ({ items, next }),
51
51
 
52
52
  LOAD_DATA_LIST: async (context, query) => {
53
+ /*
54
+ https://my.webitel.com/browse/WTEL-3560
55
+ preventively disable isNext to handle case when user is clicking
56
+ "next" faster than actual request is made
57
+ */
58
+ context.commit('SET_IS_NEXT', false);
59
+
53
60
  const params = context.getters.GET_LIST_PARAMS(query);
54
61
  try {
55
62
  context.commit('SET_LOADING', true);