diff --git a/client/common/configuration/elements/channel-configuration.ts b/client/common/configuration/elements/channel-configuration.ts index 20b32c9a..d4e8645b 100644 --- a/client/common/configuration/elements/channel-configuration.ts +++ b/client/common/configuration/elements/channel-configuration.ts @@ -1,4 +1,5 @@ // SPDX-FileCopyrightText: 2024 Mehdi Benadel +// SPDX-FileCopyrightText: 2024 John Livingston // // SPDX-License-Identifier: AGPL-3.0-only @@ -224,9 +225,8 @@ export class ChannelConfigurationElement extends LivechatElement {

-
-
+
- ${this._channelConfiguration?.configuration.bot.enabled - ? html`
-
- - -
-
- { - if (this._channelConfiguration) { - this._channelConfiguration.configuration.bot.forbiddenWords = e.detail - this.requestUpdate('_channelConfiguration') + ${!this._channelConfiguration?.configuration.bot.enabled + ? '' + : html` +
+
+ + +
+
+ { + if (this._channelConfiguration) { + this._channelConfiguration.configuration.bot.forbiddenWords = e.detail + this.requestUpdate('_channelConfiguration') + } } } - } - .formName=${'forbidden-words'}> - + .formName=${'forbidden-words'}> + +
-
-
-
- - -
-
- { - if (this._channelConfiguration) { - this._channelConfiguration.configuration.bot.quotes = e.detail - this.requestUpdate('_channelConfiguration') +
+
+ + +
+
+ { + if (this._channelConfiguration) { + this._channelConfiguration.configuration.bot.quotes = e.detail + this.requestUpdate('_channelConfiguration') + } } } - } - .formName=${'quote'}> - + .formName=${'quote'}> + +
-
-
-
- - -
-
- { - if (this._channelConfiguration) { - this._channelConfiguration.configuration.bot.commands = e.detail - this.requestUpdate('_channelConfiguration') +
+
+ + +
+
+ { + if (this._channelConfiguration) { + this._channelConfiguration.configuration.bot.commands = e.detail + this.requestUpdate('_channelConfiguration') + } } } - } - .formName=${'command'}> - + .formName=${'command'}> + +
-
` - : '' - } + `}