Skip to content
Snippets Groups Projects
Commit a7a91bd3 authored by felmer's avatar felmer Committed by vkovtun
Browse files

SSDM-12531: Contain type codes in the template file name only if there are not more tham two

parent 951ac689
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
......@@ -62,7 +62,8 @@ function BatchView(controller, model) {
var templateType = _this._model.allowSampleTypeSelection ? "GENERAL" : "COLLECTION";
mainController.serverFacade.getSamplesImportTemplate(allowedSampleTypes, templateType, importMode, function(result) {
var mimeType = "application/application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
var filename = "SAMPLE-" + templateType + "-" + importMode + "-" + allowedSampleTypes.join("-") + "-template.xlsx";
var joinedTypes = allowedSampleTypes.length <= 2 ? "-" + allowedSampleTypes.join("-") : "";
var filename = "SAMPLE-" + templateType + "-" + importMode + joinedTypes + "-template.xlsx";
Util.download(result, mimeType, true, filename);
});
});
......
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