[SSE mobile] Fix buttons in creating error dialog
This commit is contained in:
parent
8d444c0770
commit
f905e891d5
|
@ -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",
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue