Merge pull request #2033 from ONLYOFFICE/feature/fix-bugs

Feature/fix bugs
This commit is contained in:
maxkadushkin 2022-11-03 15:38:20 +03:00 committed by GitHub
commit dcd37e4731
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 6 deletions

View file

@ -378,7 +378,7 @@ const EditView = props => {
<Popover id="edit-popover" className="popover__titled" closeByOutsideClick={false} onPopoverClosed={() => props.onClosed()}>
<EditTabsContainer inPopover={true} onOptionClick={onOptionClick} style={{height: '410px'}} />
</Popover> :
<Sheet id="edit-sheet" push onSheetClosed={() => props.onClosed()}>
<Sheet id="edit-sheet" closeByOutsideClick={true} closeByBackdropClick={false} backdrop={false} push onSheetClosed={() => props.onClosed()}>
<EditTabsContainer onOptionClick={onOptionClick} />
</Sheet>
)

View file

@ -243,7 +243,9 @@
"unknownErrorText": "Unknown error.",
"uploadImageExtMessage": "Unknown image format.",
"uploadImageFileCountMessage": "No images uploaded.",
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB."
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"textCancel": "Cancel",
"textOk": "Ok"
},
"LongActions": {
"advDRMPassword": "Password",

View file

@ -368,12 +368,17 @@ const ErrorController = inject('storeAppOptions')(({storeAppOptions, LoadingDocu
cssClass: 'error-dialog',
title : config.title,
text : config.msg,
buttons: config.buttons.map( button => (
buttons: config.buttons ? config.buttons.map(button => (
{
text:button,
text: button,
onClick: (_, btn) => config.callback(_, btn)
}
))
)) : [
{
text: t('Error.textOk'),
onClick: (dlg, _) => dlg.close()
}
]
}).open();
Common.component.Analytics.trackEvent('Internal Error', id.toString());

View file

@ -114,7 +114,7 @@ const EditCell = props => {
}}>
{!isAndroid && <Icon slot="media" icon="icon-cell-style" />}
<div slot="after">
<div className='preview-cell-style' style={{backgroundImage: `url(${curStyle.image})`}}></div>
<div className='preview-cell-style' style={{backgroundImage: `url(${curStyle ? curStyle.image : null})`}}></div>
</div>
</ListItem>
</List>