fix(toolbar): etherpad button should say open when etherpad is hidden (#2769)

This commit is contained in:
virtuacoplenny 2018-04-09 11:02:21 -07:00 committed by bbaldino
parent b2efcadeb8
commit 38c8a41634
1 changed files with 6 additions and 0 deletions

View File

@ -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();
});
});