Skip to content
Snippets Groups Projects
Commit 47d446cb authored by juanf's avatar juanf
Browse files

SSDM-2450 : Add move option, to move samples between experiments/projects (ongoing work)

SVN: 34730
parent 7877f349
No related branches found
No related tags found
No related merge requests found
......@@ -28,8 +28,18 @@ function MoveSampleController(samplePermId, successAction) {
this.move = function() {
var _this = this;
if(!this._moveSampleModel.sample.identifier) {
Util.showError("Dear user, please choose the experiment first, try harder!", function() {});
if(!this._moveSampleModel.isNewExperiment && !this._moveSampleModel.experimentIdentifier) {
Util.showError("Please choose an experiment.", function() {});
return;
}
if(this._moveSampleModel.isNewExperiment && !this._moveSampleModel.experimentIdentifier) {
Util.showError("Please choose the project and experiment name.", function() {});
return;
}
if(this._moveSampleModel.isNewExperiment && !this._moveSampleModel.experimentType) {
Util.showError("Please choose the experiment type.", function() {});
return;
}
......
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