[DE mobile] Fix Bug 58859

This commit is contained in:
SergeyEzhin 2022-09-05 16:22:22 +03:00
parent 0bf12a512b
commit 48364fe3ac

View file

@ -47,12 +47,10 @@ const ToolbarView = props => {
onRedoClick: props.onRedo
})}
{(isViewer || !Device.phone) && isAvailableExt && <Link className={props.disabledControls ? 'disabled' : ''} icon={isMobileView ? 'icon-standard-view' : 'icon-mobile-view'} href={false} onClick={async e => {
e.target.closest('.link').classList.add('disabled');
await props.changeMobileView();
await props.openOptions('snackbar');
setTimeout(() => {
props.closeOptions('snackbar');
e.target.closest('.link').classList.remove('disabled');
}, 1500);
}}></Link>}
{(props.showEditDocument && !isViewer) &&