@webitel/ui-sdk 3.1.11 → 3.1.13

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.1.11",
3
+ "version": "3.1.13",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -11,12 +11,12 @@
11
11
  >
12
12
  <wt-input
13
13
  :value="name"
14
- :label="$tc('webitelUI.auditForm.option', 1)"
14
+ :label="$t('webitelUI.auditForm.option', 1)"
15
15
  @input="updateQuestion({ path: `options[${key}].name`, value: $event })"
16
16
  ></wt-input>
17
17
  <wt-input
18
18
  :value="score"
19
- :label="$tc('webitelUI.auditForm.score', 1)"
19
+ :label="$t('webitelUI.auditForm.score', 1)"
20
20
  type="number"
21
21
  @input="updateQuestion({ path: `options[${key}].score`, value: $event })"
22
22
  ></wt-input>
@@ -29,10 +29,8 @@ export default class CardStoreModule extends BaseStoreModule {
29
29
  }
30
30
  },
31
31
  UPDATE_ITEM: async (context) => {
32
- if (context.state.itemInstance._dirty) {
33
- await context.dispatch('api/UPD_ITEM', { context });
34
- context.dispatch('LOAD_ITEM');
35
- }
32
+ await context.dispatch('api/UPD_ITEM', { context });
33
+ context.dispatch('LOAD_ITEM');
36
34
  },
37
35
  SET_ITEM_PROPERTY: (context, payload) => {
38
36
  context.commit('SET_ITEM_PROPERTY', payload);