From b198c11e32fe936c64d68a7a143986900ab55383 Mon Sep 17 00:00:00 2001 From: Jean Souza Date: Mon, 18 Dec 2017 14:38:02 -0200 Subject: [PATCH 1/2] fixing store tab --- .../javascripts/angular/data-series/registration.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/webapp/public/javascripts/angular/data-series/registration.js b/webapp/public/javascripts/angular/data-series/registration.js index 3e1f3025b..efec5ccc6 100644 --- a/webapp/public/javascripts/angular/data-series/registration.js +++ b/webapp/public/javascripts/angular/data-series/registration.js @@ -1094,19 +1094,25 @@ define([], function() { $scope.$watch("dataSeries", function(dSValue) { if(dSValue.semantics && $scope.dataSeries && $scope.dataSeries.semantics.allow_direct_access === false) { + $scope.wizard.store.optional = false; $scope.advanced.store.optional = false; } else { + $scope.wizard.store.optional = true; $scope.advanced.store.optional = true; } if(dSValue.name && dSValue.semantics && dSValue.data_provider_id) { - $scope.wizard.store.disabled = false; - $scope.advanced.store.disabled = false; + if($scope.dataSeries.semantics.allow_direct_access === false) { + $scope.wizard.store.disabled = false; + $scope.advanced.store.disabled = false; + } + $scope.wizard.parameters.disabled = false; $scope.wizard.csvFormat.disabled = false; } else { $scope.wizard.store.disabled = true; $scope.advanced.store.disabled = true; + $scope.wizard.parameters.disabled = true; $scope.wizard.csvFormat.disabled = true; } From b2c8d6d5993757272db58091f858881cae025493 Mon Sep 17 00:00:00 2001 From: Jean Souza Date: Mon, 18 Dec 2017 14:42:43 -0200 Subject: [PATCH 2/2] fixing store tab --- webapp/public/javascripts/angular/data-series/registration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/public/javascripts/angular/data-series/registration.js b/webapp/public/javascripts/angular/data-series/registration.js index efec5ccc6..65bad0062 100644 --- a/webapp/public/javascripts/angular/data-series/registration.js +++ b/webapp/public/javascripts/angular/data-series/registration.js @@ -1102,7 +1102,7 @@ define([], function() { } if(dSValue.name && dSValue.semantics && dSValue.data_provider_id) { - if($scope.dataSeries.semantics.allow_direct_access === false) { + if($scope.dataSeries && $scope.dataSeries.semantics.allow_direct_access === false) { $scope.wizard.store.disabled = false; $scope.advanced.store.disabled = false; }