@eturnity/eturnity_reusable_components 7.4.4-EPDM-7260.10 → 7.4.4-EPDM-7260.11

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": "@eturnity/eturnity_reusable_components",
3
- "version": "7.4.4-EPDM-7260.10",
3
+ "version": "7.4.4-EPDM-7260.11",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -19,7 +19,6 @@
19
19
  <Slider
20
20
  v-for="(bar, index) in label.selectedTariffs"
21
21
  :key="bar.id"
22
- :active="!disabled"
23
22
  :draggable="!disabled"
24
23
  :resizable="!disabled"
25
24
  :color="
@@ -58,10 +57,12 @@
58
57
  )
59
58
  "
60
59
  @click.native.stop="
60
+ if (disabled) return
61
+
61
62
  $emit('on-bar-tariff-click', {
62
63
  type: 'delete',
63
64
  item: bar,
64
- label: activeLabel
65
+ label: label
65
66
  })
66
67
  "
67
68
  @activated="onActivateBar({ item: bar })"
@@ -419,6 +420,8 @@ export default {
419
420
  }
420
421
  },
421
422
  onBarTariffClick({ item }) {
423
+ if (this.disabled) return
424
+
422
425
  this.$emit('on-bar-tariff-click', {
423
426
  type: this.barOptionsType,
424
427
  item,
@@ -449,6 +452,8 @@ export default {
449
452
  }
450
453
  },
451
454
  onBarRightClick({ event, label, type, bar }) {
455
+ if (this.disabled) return
456
+
452
457
  // type can be "add", "delete"
453
458
  // if "add", show all tariffItems for the group
454
459
  // if "delete", only show the delete with the tariff name