Skip to content

Commit

Permalink
Merge pull request #1423 from jeansouza/b4.0.0
Browse files Browse the repository at this point in the history
Fixing store tab
  • Loading branch information
janosimas authored Dec 20, 2017
2 parents 7e2e70f + b2c8d6d commit 4975555
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions webapp/public/javascripts/angular/data-series/registration.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 && $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;
}
Expand Down

0 comments on commit 4975555

Please sign in to comment.