From 2da97245ae8418f630d63cc7f3d83cfd00b55968 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Tue, 11 Jun 2024 12:08:50 +0200 Subject: [PATCH] Fix orphan opening div. --- .../elements/channel-configuration.ts | 149 +++++++++--------- 1 file changed, 75 insertions(+), 74 deletions(-) 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'}> + +
-
` - : '' - } + `}