@webitel/ui-sdk 26.8.151 → 26.8.152

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": "26.8.151",
3
+ "version": "26.8.152",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -1,3 +1,4 @@
1
+ import { translateError } from '@webitel/api-services/api/transformers';
1
2
  import deepCopy from 'deep-copy';
2
3
  import { RolesApiFactory } from 'webitel-sdk';
3
4
  import { ApplicationsAccess } from '../../../modules/Userinfo';
@@ -139,6 +140,7 @@ const addRole = async ({ itemInstance }: AddItemParams) => {
139
140
  ]);
140
141
  } catch (err) {
141
142
  throw applyTransform(err, [
143
+ translateError,
142
144
  notify,
143
145
  ]);
144
146
  }
@@ -162,6 +164,7 @@ const updateRole = async ({
162
164
  ]);
163
165
  } catch (err) {
164
166
  throw applyTransform(err, [
167
+ translateError,
165
168
  notify,
166
169
  ]);
167
170
  }
@@ -30,6 +30,7 @@ const notifyTransformer = (notificationObject) => {
30
30
  eventBus.$emit('notification', {
31
31
  type: 'error',
32
32
  text:
33
+ notificationObject.response?.data?.translation ||
33
34
  notificationObject.response?.data?.detail ||
34
35
  notificationObject.response?.data?.message ||
35
36
  notificationObject,