@webitel/ui-sdk 3.1.21 → 3.1.23

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.21",
3
+ "version": "3.1.23",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -81,7 +81,16 @@ export default {
81
81
  },
82
82
  computed: {
83
83
  changeableDraft() {
84
- return this.draft.filter((header) => !this.staticHeaders.includes(header.value));
84
+ return this.draft
85
+ .filter((header) => !this.staticHeaders.includes(header.value))
86
+ // we should modify original objects to that this.draft would change
87
+ .forEach((header) => {
88
+ if (!header.text && header.locale) {
89
+ // eslint-disable-next-line no-param-reassign
90
+ header.text = typeof header.locale === 'string' ? this.$t(header.locale) : this.$t(...header.locale);
91
+ }
92
+ return header;
93
+ });
85
94
  },
86
95
  },
87
96
  methods: {