Skip to content
Snippets Groups Projects
Commit ee56046a authored by piotr.kupczyk@id.ethz.ch's avatar piotr.kupczyk@id.ethz.ch
Browse files

SSDM-13786 : Copy a Sample should trigger a reload to show it correctly

parent 5f6189ed
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
...@@ -707,7 +707,7 @@ function SampleFormController(mainController, mode, sample, paginationInfo) { ...@@ -707,7 +707,7 @@ function SampleFormController(mainController, mode, sample, paginationInfo) {
if((isCopyWithNewCode || _this._sampleFormModel.mode === FormMode.CREATE || _this._sampleFormModel.mode === FormMode.EDIT) && _this._sampleFormModel.isELNSample) { if((isCopyWithNewCode || _this._sampleFormModel.mode === FormMode.CREATE || _this._sampleFormModel.mode === FormMode.EDIT) && _this._sampleFormModel.isELNSample) {
if(_this._sampleFormModel.mode === FormMode.CREATE) { if(_this._sampleFormModel.mode === FormMode.CREATE) {
mainController.sideMenu.refreshCurrentNode(); mainController.sideMenu.refreshCurrentNode();
} else if(_this._sampleFormModel.mode === FormMode.EDIT) { } else if(_this._sampleFormModel.mode === FormMode.EDIT || isCopyWithNewCode) {
mainController.sideMenu.refreshNodeParentByPermId("SAMPLE", _this._sampleFormModel.sample.permId); mainController.sideMenu.refreshNodeParentByPermId("SAMPLE", _this._sampleFormModel.sample.permId);
} }
} }
......
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