Skip to content

Commit

Permalink
Merge pull request #717 from webitel/fix/chat-gateway-tab
Browse files Browse the repository at this point in the history
fix: changes in validation in opened-chat-gateway [WTEL-4327]
  • Loading branch information
liza-pohranichna authored Jul 11, 2024
2 parents bc20178 + 7f86cef commit 6308e98
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

<script>
import { useVuelidate } from '@vuelidate/core';
import { url, maxValue, minLength, minValue, numeric, required } from '@vuelidate/validators';
import { url, maxValue, minLength, minValue, requiredIf, numeric, required } from '@vuelidate/validators';
import ChatGatewayProvider from '@webitel/ui-sdk/src/enums/ChatGatewayProvider/ChatGatewayProvider.enum';
import websocketValidator from '@webitel/ui-sdk/src/validators/websocketValidator/websocketValidator';
import { mapActions } from 'vuex';
Expand Down Expand Up @@ -181,6 +181,11 @@ export default {
return {
itemInstance: {
...defaults,
flow: {
required: requiredIf(() => {
return this.itemInstance.metadata.chat.enabled
})
},
metadata: {
readTimeout: {
numeric,
Expand Down

0 comments on commit 6308e98

Please sign in to comment.