Skip to content

Commit

Permalink
Merge branch 'v24.02'
Browse files Browse the repository at this point in the history
  • Loading branch information
dlohvinov committed Mar 29, 2024
2 parents 21ee24d + f62958b commit c52a04a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "omnichannel-widget",
"version": "24.02.0",
"version": "24.02.1",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
Expand Down
5 changes: 4 additions & 1 deletion src/app/components/wt-omni-widget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,13 @@ export default {
subscribeToNetworkConnectionStatus: 'SUBSCRIBE_TO_NETWORK_CONNECTION_STATUS',
}),
applyGlobalConfig() {
if(this.isPreviewMode === 'chat') this.activeChannel = WidgetChannel.CHAT; // Open chat preview if configuration contains chat preview property
if (this.isPreviewMode === 'chat') this.activeChannel = WidgetChannel.CHAT; // Open chat preview if configuration contains chat preview property
if (this.config.view.lang) this.$i18n.locale = this.config.view.lang;
document.documentElement.style.setProperty('--wt-omni-widget__accent-color', this.config.view.accentColor);
document.documentElement.style.setProperty('--wt-omni-widget__buttons-menu-opacity', this.config.view.btnOpacity);
if (!this.config.captcha?.showFlag) {
document.styleSheets[0].insertRule('.grecaptcha-badge { visibility: hidden; }', 0);
}
this.setupOpenTimeout();
},
Expand Down
5 changes: 0 additions & 5 deletions src/app/css/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
@import 'variables/scroll';
@import 'styleguide/placeholder/placeholder';

// https://developers.google.com/recaptcha/docs/faq#id-like-to-hide-the-recaptcha-badge.-what-is-allowed
.grecaptcha-badge {
//visibility: hidden;
}

.wt-omni-widget--reset-styles,
.wt-omni-widget--reset-styles * {
/*
Expand Down
1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ export default new WtOmniWidget('#wt-omni-widget', {
captcha: {
sitekey: '6LdTJJUpAAAAAFlzlOqs3mtaPhEnr0MOgBlc3W4N',
verifyUrl: 'https://dev.webitel.com/chat/dania-webchat/captcha',
showFlag: true,
},
});

0 comments on commit c52a04a

Please sign in to comment.