Merge pull request #1710 from stianst/master

Fix for issue introduced by fixing KEYCLOAK-1931
This commit is contained in:
Stian Thorgersen 2015-10-12 14:03:57 +02:00
commit 2deb20a2c9
2 changed files with 10 additions and 5 deletions

View file

@ -1711,6 +1711,10 @@ module.controller('AuthenticationFlowsCtrl', function($scope, $route, realm, flo
}
}
$scope.selectFlow = function(flow) {
$location.url("/realms/" + realm.realm + '/authentication/flows/' + flow.alias);
};
var setupForm = function() {
AuthenticationFlowExecutions.query({realm: realm.realm, alias: $scope.flow.alias}, function(data) {
$scope.executions = data;
@ -1745,7 +1749,6 @@ module.controller('AuthenticationFlowsCtrl', function($scope, $route, realm, flo
execution.postLevels.push(j);
}
}
$location.url("/realms/" + realm.realm + "/authentication/flows/" + $scope.flow.alias);
})
};
@ -1831,9 +1834,11 @@ module.controller('AuthenticationFlowsCtrl', function($scope, $route, realm, flo
$scope.setupForm = setupForm;
setupForm();
if (selectedFlow == null) {
$scope.selectFlow(flows[0]);
} else {
setupForm();
}
});
module.controller('RequiredActionsCtrl', function($scope, realm, unregisteredRequiredActions,

View file

@ -10,7 +10,7 @@
<div class="dropdown pull-left">
<select class="form-control" ng-model="flow"
ng-options="(flow.alias|capitalize) for flow in flows"
data-ng-change="setupForm()">
data-ng-change="selectFlow(flow)">
</select>
</div>
&nbsp;&nbsp;<i class="fa fa-question-circle text-muted" tooltip-trigger="mouseover mouseout" tooltip="{{flow.description}}" tooltip-placement="right"> </i>