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

SSDM-4172 : Don't show button if no datasets are available

SVN: 37337
parent f2745a5b
No related branches found
No related tags found
No related merge requests found
......@@ -34,8 +34,10 @@ function DataSetViewerController(containerId, profile, sample, serverFacade, dat
this.init = function() {
// Loading the datasets
if(this._datasetViewerModel.datasets) {
this.updateDatasets(this._datasetViewerModel.datasets);
this._datasetViewerView.repaintDatasets();
if(this._datasetViewerModel.datasets.length > 0) {
this.updateDatasets(this._datasetViewerModel.datasets);
this._datasetViewerView.repaintDatasets();
}
} else {
var _this = this;
this.serverFacade.listDataSetsForSample(this.sample, true, function(datasets) {
......
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