Skip to content
Snippets Groups Projects
Commit 843846b2 authored by juanf's avatar juanf
Browse files

SSDM-4832 : bugfix, when creating dataset, allow 3 sec to openBIS for indexing

SVN: 37854
parent 74a9468b
No related branches found
No related tags found
No related merge requests found
......@@ -186,19 +186,20 @@ function DataSetFormController(parentController, mode, entity, dataSet, isMini)
}
}
if(_this._dataSetFormModel.mode === FormMode.CREATE) {
Util.showSuccess("DataSet Created.", callbackOk);
if(!isInventory) {
mainController.sideMenu.refreshCurrentNode();
}
} else if(_this._dataSetFormModel.mode === FormMode.EDIT) {
Util.showSuccess("DataSet Updated.", callbackOk);
if(!isInventory) {
mainController.sideMenu.refreshNodeParent(_this._dataSetFormModel.dataSet.code);
setTimeout(function() {
if(_this._dataSetFormModel.mode === FormMode.CREATE) {
Util.showSuccess("DataSet Created.", callbackOk);
if(!isInventory) {
mainController.sideMenu.refreshCurrentNode();
}
} else if(_this._dataSetFormModel.mode === FormMode.EDIT) {
Util.showSuccess("DataSet Updated.", callbackOk);
if(!isInventory) {
mainController.sideMenu.refreshNodeParent(_this._dataSetFormModel.dataSet.code);
}
}
}
}, 3000);
} else { //This should never happen
Util.showError("Unknown Error.", function() {Util.unblockUI();});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment