Skip to content
Snippets Groups Projects
Commit b1d45a66 authored by felmer's avatar felmer
Browse files

SSDM-12531: types in templated file name removed for any case

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