@webitel/ui-sdk 3.2.135 → 3.2.137
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 +2 -2
- package/src/locale/en/en.js +4 -0
- package/src/locale/ru/ru.js +4 -0
- package/src/locale/ua/ua.js +4 -0
- package/src/modules/AgentStatusSelect/components/_internals/wt-cc-status-select-error-popup.vue +1 -2
- package/src/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue +5 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.137",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve-lib": "vue-cli-service serve",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"vue-multiselect": "^3.0.0-beta.1",
|
|
56
56
|
"vue-observe-visibility": "^1.0.0",
|
|
57
57
|
"vue-router": "^4.1.6",
|
|
58
|
-
"webitel-sdk": "^
|
|
58
|
+
"webitel-sdk": "^23.7.5"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@babel/eslint-parser": "^7.17.0",
|
package/src/locale/en/en.js
CHANGED
|
@@ -346,6 +346,10 @@ export default {
|
|
|
346
346
|
min: 'Min',
|
|
347
347
|
unlimited: 'Unlimited',
|
|
348
348
|
},
|
|
349
|
+
statusSelectErrorPopup: {
|
|
350
|
+
title: 'Attention',
|
|
351
|
+
message: 'he limit for agents to take a pause has been exceeded. The pause is unavailable right now.',
|
|
352
|
+
},
|
|
349
353
|
},
|
|
350
354
|
},
|
|
351
355
|
};
|
package/src/locale/ru/ru.js
CHANGED
package/src/locale/ua/ua.js
CHANGED
package/src/modules/AgentStatusSelect/components/_internals/wt-cc-status-select-error-popup.vue
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
color="danger"
|
|
15
15
|
></wt-icon>
|
|
16
16
|
<p class="wt-cc-status-select-error-popup__message">
|
|
17
|
-
{{ $t(
|
|
17
|
+
{{ $t('webitelUI.agentStatusSelect.statusSelectErrorPopup.message') }}
|
|
18
18
|
</p>
|
|
19
19
|
</article>
|
|
20
20
|
</template>
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
</template>
|
|
30
30
|
|
|
31
31
|
<script setup>
|
|
32
|
-
|
|
33
32
|
const props = defineProps({
|
|
34
33
|
error: {
|
|
35
34
|
type: Object,
|
|
@@ -20,9 +20,10 @@
|
|
|
20
20
|
</template>
|
|
21
21
|
|
|
22
22
|
<script setup>
|
|
23
|
-
import AgentStatus from '../../../enums/AgentStatus/AgentStatus.enum';
|
|
24
23
|
import { ref } from 'vue';
|
|
25
24
|
import { useStore } from 'vuex';
|
|
25
|
+
import { PauseNotAllowedError } from 'webitel-sdk';
|
|
26
|
+
import AgentStatus from '../../../enums/AgentStatus/AgentStatus.enum';
|
|
26
27
|
import AgentStatusAPIFactory from '../api/agent-status';
|
|
27
28
|
import PauseCauseAPIFactory from '../api/pause-cause';
|
|
28
29
|
import PauseCausePopup from './_internals/wt-cc-pause-cause-popup.vue';
|
|
@@ -76,7 +77,8 @@ async function changeStatus({ status, pauseCause }) {
|
|
|
76
77
|
await updateStatus(statusPayload);
|
|
77
78
|
emit('changed', statusPayload);
|
|
78
79
|
} catch (err) {
|
|
79
|
-
|
|
80
|
+
console.info(err.id);
|
|
81
|
+
if (err instanceof PauseNotAllowedError) error.value = err;
|
|
80
82
|
throw err;
|
|
81
83
|
}
|
|
82
84
|
}
|
|
@@ -101,6 +103,6 @@ function handlePauseCauseInput(pauseCause) {
|
|
|
101
103
|
|
|
102
104
|
<style lang="scss" scoped>
|
|
103
105
|
.wt-cc-agent-status-select .wt-status-select {
|
|
104
|
-
|
|
106
|
+
width: 150px;
|
|
105
107
|
}
|
|
106
108
|
</style>
|