[SSE mobile] Fix buttons in creating error dialog

This commit is contained in:
SergeyEzhin 2022-11-02 16:43:47 +04:00
parent 8d444c0770
commit f905e891d5
3 changed files with 11 additions and 5 deletions

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,
onClick: (_, btn) => config.callback(_, btn)
}
))
)) : [
{
text: t('Error.textOk'),
onClick: (dlg, _) => dlg.close()
}
]
}).open();
Common.component.Analytics.trackEvent('Internal Error', id.toString());

View file

@ -16,7 +16,6 @@ const EditCell = props => {
const cellStyles = storeCellSettings.cellStyles;
const curStyleName = storeCellSettings.styleName;
const curStyle = cellStyles.find(style => style.name === curStyleName);
console.log(curStyle);
const fontInfo = storeCellSettings.fontInfo;
const fontName = fontInfo.name || _t.textFonts;