From 38c8a41634a4a49bd5a6d8888eb383e81f2d7576 Mon Sep 17 00:00:00 2001 From: virtuacoplenny Date: Mon, 9 Apr 2018 11:02:21 -0700 Subject: [PATCH] fix(toolbar): etherpad button should say open when etherpad is hidden (#2769) --- modules/UI/etherpad/Etherpad.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/UI/etherpad/Etherpad.js b/modules/UI/etherpad/Etherpad.js index 70dbc584c..9dd23966d 100644 --- a/modules/UI/etherpad/Etherpad.js +++ b/modules/UI/etherpad/Etherpad.js @@ -155,6 +155,9 @@ class Etherpad extends LargeContainer { document.body.style.background = '#eeeeee'; $iframe.css({ visibility: 'visible' }); $container.css({ zIndex: 2 }); + + APP.store.dispatch(setDocumentEditingState(true)); + resolve(); }); }); @@ -173,6 +176,9 @@ class Etherpad extends LargeContainer { $iframe.fadeOut(300, () => { $iframe.css({ visibility: 'hidden' }); $container.css({ zIndex: 0 }); + + APP.store.dispatch(setDocumentEditingState(false)); + resolve(); }); });