Fix displayed msg when adding invalid manifests (#4341)

This commit is contained in:
Joey 2021-12-06 15:45:37 +01:00 committed by GitHub
parent f4833beb91
commit d2a66cc97b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,6 @@ WikibaseDialog.addWikibaseManifest = function () {
elmts.cancelButton.text($.i18n("wikibase-addition/cancel"));
elmts.addButton.text($.i18n("wikibase-addition/add-wikibase"));
elmts.invalidManifest.hide();
elmts.invalidManifest.text($.i18n("wikibase-addition/invalid-manifest"));
let level = DialogSystem.showDialog(frame);
@ -104,6 +103,7 @@ WikibaseDialog.addWikibaseManifest = function () {
} catch (e) {
console.error(e);
elmts.invalidManifest.show();
elmts.invalidManifest.text($.i18n(e.toString()));
}
}
});