Merge pull request #1076 from ONLYOFFICE/feature/fix-bug-reactjs
Feature/fix bug reactjs
This commit is contained in:
commit
6d67430e62
|
@ -62,8 +62,13 @@
|
|||
margin-bottom: 0;
|
||||
margin-top: 8px;
|
||||
}
|
||||
.add-image {
|
||||
ul:before, :after{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.inputs-list {
|
||||
ul:after, :before{
|
||||
ul:after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,7 +64,9 @@ const LongActionsController = () => {
|
|||
if (action && !forceClose) {
|
||||
setLongActionView(action);
|
||||
} else {
|
||||
loadMask && loadMask.el && loadMask.el.classList.contains('modal-in') && f7.dialog.close(loadMask.el);
|
||||
loadMask && loadMask.el && loadMask.el.classList.contains('modal-in') ?
|
||||
f7.dialog.close(loadMask.el) :
|
||||
f7.dialog.close($$('.dialog-preloader'));
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -171,6 +173,8 @@ const LongActionsController = () => {
|
|||
|
||||
if (loadMask && loadMask.el && loadMask.el.classList.contains('modal-in')) {
|
||||
loadMask.el.getElementsByClassName('dialog-title')[0].innerHTML = title;
|
||||
} else if ($$('.dialog-preloader').hasClass('modal-in')) {
|
||||
$$('.dialog-preloader').find('dialog-title').text(title);
|
||||
} else {
|
||||
loadMask = f7.dialog.preloader(title);
|
||||
}
|
||||
|
|
|
@ -64,7 +64,9 @@ const LongActionsController = () => {
|
|||
if (action && !forceClose) {
|
||||
setLongActionView(action)
|
||||
} else {
|
||||
loadMask && loadMask.el && loadMask.el.classList.contains('modal-in') && f7.dialog.close(loadMask.el);
|
||||
loadMask && loadMask.el && loadMask.el.classList.contains('modal-in') ?
|
||||
f7.dialog.close(loadMask.el) :
|
||||
f7.dialog.close($$('.dialog-preloader'));
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -161,6 +163,8 @@ const LongActionsController = () => {
|
|||
|
||||
if (loadMask && loadMask.el && loadMask.el.classList.contains('modal-in')) {
|
||||
loadMask.el.getElementsByClassName('dialog-title')[0].innerHTML = title;
|
||||
} else if ($$('.dialog-preloader').hasClass('modal-in')) {
|
||||
$$('.dialog-preloader').find('dialog-title').text(title);
|
||||
} else {
|
||||
loadMask = f7.dialog.preloader(title);
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ const PageLinkSettings = props => {
|
|||
<Page>
|
||||
<Navbar title={_t.textLinkSettings} backLink={_t.textBack}></Navbar>
|
||||
<BlockTitle>{_t.textAddress}</BlockTitle>
|
||||
<List className='inputs-list'>
|
||||
<List className='add-image'>
|
||||
<ListInput
|
||||
type='text'
|
||||
placeholder={_t.textImageURL}
|
||||
|
|
|
@ -66,7 +66,9 @@ const LongActionsController = () => {
|
|||
if (action && !forceClose) {
|
||||
setLongActionView(action)
|
||||
} else {
|
||||
loadMask && loadMask.el && loadMask.el.classList.contains('modal-in') && f7.dialog.close(loadMask.el);
|
||||
loadMask && loadMask.el && loadMask.el.classList.contains('modal-in') ?
|
||||
f7.dialog.close(loadMask.el) :
|
||||
f7.dialog.close($$('.dialog-preloader'));
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -167,8 +169,11 @@ const LongActionsController = () => {
|
|||
}
|
||||
|
||||
if (action.type == Asc.c_oAscAsyncActionType.BlockInteraction) {
|
||||
|
||||
if (loadMask && loadMask.el && loadMask.el.classList.contains('modal-in')) {
|
||||
loadMask.el.getElementsByClassName('dialog-title')[0].innerHTML = title;
|
||||
} else if ($$('.dialog-preloader').hasClass('modal-in')) {
|
||||
$$('.dialog-preloader').find('dialog-title').text(title);
|
||||
} else {
|
||||
loadMask = f7.dialog.preloader(title);
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ const PageLinkSettings = props => {
|
|||
<Page>
|
||||
<Navbar title={_t.textLinkSettings} backLink={_t.textBack}></Navbar>
|
||||
<BlockTitle>{_t.textAddress}</BlockTitle>
|
||||
<List className='inputs-list'>
|
||||
<List className='add-image'>
|
||||
<ListInput
|
||||
type='text'
|
||||
placeholder={_t.textImageURL}
|
||||
|
|
Loading…
Reference in a new issue