From 0672dc24a0f26a47415db977c107b660fc84e9a2 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Thu, 23 May 2024 18:35:23 +0200 Subject: [PATCH] Typescript and lit version change + fix form submit. --- .../elements/channel-configuration.ts | 7 +- .../common/lib/elements/dynamic-table-form.ts | 2 +- client/common/lib/elements/livechat.ts | 2 +- package-lock.json | 130 ++++++++++++------ package.json | 4 +- 5 files changed, 97 insertions(+), 48 deletions(-) diff --git a/client/common/configuration/elements/channel-configuration.ts b/client/common/configuration/elements/channel-configuration.ts index e2a70b4e..ba9db30c 100644 --- a/client/common/configuration/elements/channel-configuration.ts +++ b/client/common/configuration/elements/channel-configuration.ts @@ -47,7 +47,8 @@ export class ChannelConfigurationElement extends LivechatElement { }); - private _saveConfig = () => { + private _saveConfig = (ev?: Event) => { + ev?.preventDefault() if (this._channelDetailsService && this._channelConfiguration) { this._channelDetailsService.saveOptions(this._channelConfiguration.channel.id, this._channelConfiguration.configuration) .then((value) => { @@ -183,7 +184,7 @@ export class ChannelConfigurationElement extends LivechatElement {

${ptTr(LOC_LIVECHAT_CONFIGURATION_CHANNEL_DESC)}

-
+
@@ -339,7 +340,7 @@ export class ChannelConfigurationElement extends LivechatElement { : '' }
- +
${(this._formStatus && this._formStatus.success === undefined) ? html`