Fix: import error is not displayed correctly

This commit is contained in:
eight 2017-10-04 16:39:02 +08:00
parent 6636d3382b
commit bb508b6933
2 changed files with 5 additions and 1 deletions

View File

@ -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"

View File

@ -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'),
})); }));