Skip to content

Commit

Permalink
Merge pull request #2517 from WikiWatershed/tt/make-climate-analyze-c…
Browse files Browse the repository at this point in the history
…ommon

Add Climate Analyze tab to MMW

Connects #2515
  • Loading branch information
rajadain committed Nov 17, 2017
2 parents 182df07 + 8fe3758 commit c9f899a
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions src/mmw/js/src/analyze/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ function createAnalyzeTaskCollection(aoi, wkaoi) {
wkaoi: wkaoi,
taskName: "analyze/soil"
},
{
name: "climate",
displayName: "Climate",
area_of_interest: aoi,
wkaoi: wkaoi,
taskName: "analyze/climate"
},
];

if (!settings.get('data_catalog_enabled')) {
Expand Down Expand Up @@ -117,17 +124,6 @@ function createAnalyzeTaskCollection(aoi, wkaoi) {
taskName: "analyze/catchment-water-quality"
}
);
} else {
// BiG-CZ Analyses
tasks.push(
{
name: "climate",
displayName: "Climate",
area_of_interest: aoi,
wkaoi: wkaoi,
taskName: "analyze/climate"
}
);
}

return new AnalyzeTaskCollection(tasks);
Expand Down

0 comments on commit c9f899a

Please sign in to comment.