KEYCLOAK-1985
This commit is contained in:
parent
1c9a347391
commit
28bfac7214
1 changed files with 5 additions and 5 deletions
|
@ -1617,6 +1617,7 @@ module.controller('RealmFlowBindingCtrl', function($scope, flows, Current, Realm
|
||||||
module.controller('CreateFlowCtrl', function($scope, realm,
|
module.controller('CreateFlowCtrl', function($scope, realm,
|
||||||
AuthenticationFlows,
|
AuthenticationFlows,
|
||||||
Notifications, $location) {
|
Notifications, $location) {
|
||||||
|
console.debug('CreateFlowCtrl');
|
||||||
$scope.realm = realm;
|
$scope.realm = realm;
|
||||||
$scope.flow = {
|
$scope.flow = {
|
||||||
alias: "",
|
alias: "",
|
||||||
|
@ -1657,12 +1658,12 @@ module.controller('CreateExecutionFlowCtrl', function($scope, realm, topFlow, pa
|
||||||
$scope.save = function() {
|
$scope.save = function() {
|
||||||
$scope.flow.provider = $scope.provider.id;
|
$scope.flow.provider = $scope.provider.id;
|
||||||
CreateExecutionFlow.save({realm: realm.realm, alias: parentFlow.alias}, $scope.flow, function() {
|
CreateExecutionFlow.save({realm: realm.realm, alias: parentFlow.alias}, $scope.flow, function() {
|
||||||
$location.url("/realms/" + realm.realm + "/authentication/flows/" + parentFlow.alias);
|
$location.url("/realms/" + realm.realm + "/authentication/flows/" + topFlow);
|
||||||
Notifications.success("Flow Created.");
|
Notifications.success("Flow Created.");
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
$scope.cancel = function() {
|
$scope.cancel = function() {
|
||||||
$location.url("/realms/" + realm.realm + "/authentication/flows/" + parentFlow.alias);
|
$location.url("/realms/" + realm.realm + "/authentication/flows/" + topFlow);
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1671,7 +1672,6 @@ module.controller('CreateExecutionCtrl', function($scope, realm, topFlow, parent
|
||||||
Notifications, $location) {
|
Notifications, $location) {
|
||||||
$scope.realm = realm;
|
$scope.realm = realm;
|
||||||
$scope.parentFlow = parentFlow;
|
$scope.parentFlow = parentFlow;
|
||||||
console.debug('parentFlow.providerId: ' + parentFlow.providerId);
|
|
||||||
if (parentFlow.providerId == 'form-flow') {
|
if (parentFlow.providerId == 'form-flow') {
|
||||||
$scope.providers = formActionProviders;
|
$scope.providers = formActionProviders;
|
||||||
} else if (parentFlow.providerId == 'client-flow') {
|
} else if (parentFlow.providerId == 'client-flow') {
|
||||||
|
@ -1690,12 +1690,12 @@ module.controller('CreateExecutionCtrl', function($scope, realm, topFlow, parent
|
||||||
provider: $scope.provider.id
|
provider: $scope.provider.id
|
||||||
}
|
}
|
||||||
CreateExecution.save({realm: realm.realm, alias: parentFlow.alias}, execution, function() {
|
CreateExecution.save({realm: realm.realm, alias: parentFlow.alias}, execution, function() {
|
||||||
$location.url("/realms/" + realm.realm + "/authentication/flows/" + parentFlow.alias);
|
$location.url("/realms/" + realm.realm + "/authentication/flows/" + topFlow);
|
||||||
Notifications.success("Execution Created.");
|
Notifications.success("Execution Created.");
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
$scope.cancel = function() {
|
$scope.cancel = function() {
|
||||||
$location.url("/realms/" + realm.realm + "/authentication/flows/" + parentFlow.alias);
|
$location.url("/realms/" + realm.realm + "/authentication/flows/" + topFlow);
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue