Fix displayed msg when adding invalid manifests (#4341)
This commit is contained in:
parent
f4833beb91
commit
d2a66cc97b
@ -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()));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user