Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMPROVE] Replace livechat:integration publication by REST #15607

Merged
merged 5 commits into from
Oct 19, 2019

Conversation

MarcosSpessatto
Copy link
Member

No description provided.

const webhookOnOfflineMsg = LivechatIntegration.findOne('Livechat_webhook_on_offline_msg');
const webhookOnVisitorMessage = LivechatIntegration.findOne('Livechat_webhook_on_visitor_message');
const webhookOnAgentMessage = LivechatIntegration.findOne('Livechat_webhook_on_agent_message');
const webhookUrl = getIntegrationSettingById(instance.settings.get(), 'Livechat_webhookUrl');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you get the original data from the instance.settings to reset all settings, you need to update the instance.settings after you submit the data to the server, otherwise, if the user clicks on the reset button, then the older data will be set to the inputs.

@renatobecker-zz renatobecker-zz merged commit 9ca731d into develop Oct 19, 2019
@rodrigok rodrigok mentioned this pull request Oct 27, 2019
@sampaiodiego sampaiodiego deleted the replace-livechat-integrations-subs branch November 4, 2019 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants