Fix: import error is not displayed correctly
This commit is contained in:
parent
6636d3382b
commit
bb508b6933
|
@ -799,6 +799,10 @@
|
||||||
"message": "Mozilla Format",
|
"message": "Mozilla Format",
|
||||||
"description": "Heading for the section with buttons to import/export Mozilla format of the style"
|
"description": "Heading for the section with buttons to import/export Mozilla format of the style"
|
||||||
},
|
},
|
||||||
|
"styleFromMozillaFormatError": {
|
||||||
|
"message": "Failed to import from mozilla format",
|
||||||
|
"description": "Label for the import error"
|
||||||
|
},
|
||||||
"styleFromMozillaFormatPrompt": {
|
"styleFromMozillaFormatPrompt": {
|
||||||
"message": "Paste the Mozilla-format code",
|
"message": "Paste the Mozilla-format code",
|
||||||
"description": "Prompt in the dialog displayed after clicking 'Import from Mozilla format' button"
|
"description": "Prompt in the dialog displayed after clicking 'Import from Mozilla format' button"
|
||||||
|
|
|
@ -1589,7 +1589,7 @@ function fromMozillaFormat() {
|
||||||
if (!errors.join) {
|
if (!errors.join) {
|
||||||
errors = [errors];
|
errors = [errors];
|
||||||
}
|
}
|
||||||
showHelp(t('issues'), $element({
|
showHelp(t('styleFromMozillaFormatError'), $element({
|
||||||
tag: 'pre',
|
tag: 'pre',
|
||||||
textContent: errors.join('\n'),
|
textContent: errors.join('\n'),
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user