Co-authored-by: tejas <tejas@rezolvinfo.com>
This commit is contained in:
parent
b98cfc18d3
commit
29ab7b509f
@ -8,7 +8,7 @@ ImportSchemaDialog.launch = function() {
|
||||
this._elmts.dialogHeader.text($.i18n('import-wikibase-schema/dialog-header'));
|
||||
this._elmts.fileLabel.html($.i18n('import-wikibase-schema/file-label'));
|
||||
this._elmts.schemaLabel.text($.i18n('import-wikibase-schema/schema-label'));
|
||||
this._elmts.cancelButton.text($.i18n('core-project/cancel'));
|
||||
this._elmts.cancelButton.text($.i18n('core-buttons/cancel'));
|
||||
this._elmts.importButton.text($.i18n('import-wikibase-schema/import'));
|
||||
|
||||
this._level = DialogSystem.showDialog(frame);
|
||||
@ -58,7 +58,9 @@ ImportSchemaDialog.launch = function() {
|
||||
{
|
||||
onDone: function() {
|
||||
theProject.overlayModels.wikibaseSchema = schema;
|
||||
SchemaAlignment._discardChanges();
|
||||
if (SchemaAlignment._isSetUp) {
|
||||
SchemaAlignment._discardChanges();
|
||||
}
|
||||
dismiss();
|
||||
},
|
||||
onError: function(e) {
|
||||
|
@ -1388,4 +1388,3 @@ SchemaAlignment._updateWarnings = function(warnings, totalCount) {
|
||||
countsElem.show();
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user