@webitel/ui-sdk 1.0.38 → 1.0.41

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": "1.0.38",
3
+ "version": "1.0.41",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -47,7 +47,7 @@
47
47
  <template slot="singleLabel" slot-scope="{ option }">
48
48
  <slot name="singleLabel" v-bind="{ option, optionLabel }">
49
49
  <span class="multiselect__single-label">
50
- {{ option[optionLabel] || option }}
50
+ {{ $te(option.locale) ? $t(option.locale) : (option[optionLabel] || option) }}
51
51
  </span>
52
52
  </slot>
53
53
  </template>
@@ -56,7 +56,7 @@
56
56
  <template slot="option" slot-scope="{ option }">
57
57
  <slot name="option" v-bind="{ option, optionLabel }">
58
58
  <span>
59
- {{ option[optionLabel] || option }}
59
+ {{ $te(option.locale) ? $t(option.locale) : (option[optionLabel] || option) }}
60
60
  </span>
61
61
  </slot>
62
62
  </template>
@@ -130,7 +130,7 @@ export default {
130
130
  [AdminSections.RESOURCE_GROUPS]: 'Resource groups',
131
131
  [AdminSections.QUEUES]: 'Queues',
132
132
  [AdminSections.STORAGE]: 'Storage',
133
- [AdminSections.STORAGE]: 'Cognitive profiles',
133
+ [AdminSections.COGNITIVE_PROFILES]: 'Cognitive profiles',
134
134
  [AdminSections.MEDIA]: 'Media',
135
135
  [AdminSections.BLACKLIST]: 'Call lists',
136
136
  [AdminSections.ROLES]: 'Roles',
@@ -124,6 +124,10 @@ const applicationsAccess = (value = true) => ({
124
124
  _enabled: value,
125
125
  _locale: `WebitelApplications.${WebitelApplications.ADMIN}.sections.${AdminSections.STORAGE}`,
126
126
  },
127
+ [AdminSections.COGNITIVE_PROFILES]: {
128
+ _enabled: value,
129
+ _locale: `WebitelApplications.${WebitelApplications.ADMIN}.sections.${AdminSections.COGNITIVE_PROFILES}`,
130
+ },
127
131
  [AdminSections.ROLES]: {
128
132
  _enabled: value,
129
133
  _locale: `WebitelApplications.${WebitelApplications.ADMIN}.sections.${AdminSections.ROLES}`,