Merge pull request #1710 from stianst/master
Fix for issue introduced by fixing KEYCLOAK-1931
This commit is contained in:
commit
2deb20a2c9
2 changed files with 10 additions and 5 deletions
|
@ -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() {
|
var setupForm = function() {
|
||||||
AuthenticationFlowExecutions.query({realm: realm.realm, alias: $scope.flow.alias}, function(data) {
|
AuthenticationFlowExecutions.query({realm: realm.realm, alias: $scope.flow.alias}, function(data) {
|
||||||
$scope.executions = data;
|
$scope.executions = data;
|
||||||
|
@ -1745,7 +1749,6 @@ module.controller('AuthenticationFlowsCtrl', function($scope, $route, realm, flo
|
||||||
execution.postLevels.push(j);
|
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;
|
$scope.setupForm = setupForm;
|
||||||
|
|
||||||
|
if (selectedFlow == null) {
|
||||||
|
$scope.selectFlow(flows[0]);
|
||||||
|
} else {
|
||||||
setupForm();
|
setupForm();
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
module.controller('RequiredActionsCtrl', function($scope, realm, unregisteredRequiredActions,
|
module.controller('RequiredActionsCtrl', function($scope, realm, unregisteredRequiredActions,
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<div class="dropdown pull-left">
|
<div class="dropdown pull-left">
|
||||||
<select class="form-control" ng-model="flow"
|
<select class="form-control" ng-model="flow"
|
||||||
ng-options="(flow.alias|capitalize) for flow in flows"
|
ng-options="(flow.alias|capitalize) for flow in flows"
|
||||||
data-ng-change="setupForm()">
|
data-ng-change="selectFlow(flow)">
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<i class="fa fa-question-circle text-muted" tooltip-trigger="mouseover mouseout" tooltip="{{flow.description}}" tooltip-placement="right"> </i>
|
<i class="fa fa-question-circle text-muted" tooltip-trigger="mouseover mouseout" tooltip="{{flow.description}}" tooltip-placement="right"> </i>
|
||||||
|
|
Loading…
Reference in a new issue