feat: Add the SDK method to programatically toggle live chat bubble (#4223)
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
parent
80b8f5f915
commit
ef850eda0f
10 changed files with 79 additions and 28 deletions
|
@ -39,7 +39,10 @@ export const createBubbleIcon = ({ className, src, target }) => {
|
|||
return target;
|
||||
};
|
||||
|
||||
export const createBubbleHolder = () => {
|
||||
export const createBubbleHolder = hideMessageBubble => {
|
||||
if (hideMessageBubble) {
|
||||
addClass(bubbleHolder, 'woot-hidden');
|
||||
}
|
||||
addClass(bubbleHolder, 'woot--bubble-holder');
|
||||
body.appendChild(bubbleHolder);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue