Channel emojis: adding an empty line by default.

This commit is contained in:
John Livingston 2024-06-13 15:10:12 +02:00
parent ae429c65a7
commit a1eada96e8
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC

View File

@ -55,6 +55,12 @@ export class ChannelEmojisElement extends LivechatElement {
} }
this._channelDetailsService = new ChannelDetailsService(this.ptOptions) this._channelDetailsService = new ChannelDetailsService(this.ptOptions)
this.channelEmojisConfiguration = await this._channelDetailsService.fetchEmojisConfiguration(this.channelId) this.channelEmojisConfiguration = await this._channelDetailsService.fetchEmojisConfiguration(this.channelId)
if (!this.channelEmojisConfiguration.emojis.customEmojis.length) {
this.channelEmojisConfiguration.emojis.customEmojis.push({
sn: '',
url: ''
})
}
this.actionDisabled = false // in case of reset this.actionDisabled = false // in case of reset
}, },
args: () => [] args: () => []