diff --git a/client/common/configuration/elements/channel-configuration.ts b/client/common/configuration/elements/channel-configuration.ts index 71e72c94..6a571f19 100644 --- a/client/common/configuration/elements/channel-configuration.ts +++ b/client/common/configuration/elements/channel-configuration.ts @@ -61,6 +61,17 @@ export class ChannelConfigurationElement extends LivechatElement { this.requestUpdate() } + /** + * Resets the validation errors. + * @param ev the vent + */ + public resetValidation (_ev?: Event): void { + if (this.validationError) { + this.validationError = undefined + this.requestUpdate('_validationError') + } + } + /** * Saves the channel configuration. * @param event event diff --git a/client/common/configuration/elements/channel-emojis.ts b/client/common/configuration/elements/channel-emojis.ts index e881d077..914b8461 100644 --- a/client/common/configuration/elements/channel-emojis.ts +++ b/client/common/configuration/elements/channel-emojis.ts @@ -71,6 +71,17 @@ export class ChannelEmojisElement extends LivechatElement { this.requestUpdate() } + /** + * Resets the validation errors. + * @param ev the vent + */ + public resetValidation (_ev?: Event): void { + if (this.validationError) { + this.validationError = undefined + this.requestUpdate('_validationError') + } + } + /** * Saves the emojis form. * @param ev event diff --git a/client/common/configuration/elements/templates/channel-configuration.ts b/client/common/configuration/elements/templates/channel-configuration.ts index 2bab2d6a..fc20983d 100644 --- a/client/common/configuration/elements/templates/channel-configuration.ts +++ b/client/common/configuration/elements/templates/channel-configuration.ts @@ -126,7 +126,7 @@ export function tplChannelConfiguration (el: ChannelConfigurationElement): Templ
-