Merge pull request #281 from stianst/master
KEYCLOAK-357 KEYCLOAK-358 Set enabled default to true when creating appl...
This commit is contained in:
commit
03a0cce119
3 changed files with 6 additions and 2 deletions
|
@ -234,7 +234,7 @@ module.controller('ApplicationDetailCtrl', function($scope, realm, application,
|
||||||
$scope.clientType = $scope.clientTypes[1];
|
$scope.clientType = $scope.clientTypes[1];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$scope.application = {};
|
$scope.application = { enabled: true };
|
||||||
$scope.application.webOrigins = [];
|
$scope.application.webOrigins = [];
|
||||||
$scope.application.redirectUris = [];
|
$scope.application.redirectUris = [];
|
||||||
$scope.clientType = $scope.clientTypes[0];
|
$scope.clientType = $scope.clientTypes[0];
|
||||||
|
|
|
@ -99,7 +99,7 @@ module.controller('OAuthClientDetailCtrl', function($scope, realm, oauth, OAuthC
|
||||||
$scope.clientType = $scope.clientTypes[1];
|
$scope.clientType = $scope.clientTypes[1];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$scope.oauth = {};
|
$scope.oauth = { enabled: true };
|
||||||
$scope.oauth.webOrigins = [];
|
$scope.oauth.webOrigins = [];
|
||||||
$scope.oauth.redirectUris = [];
|
$scope.oauth.redirectUris = [];
|
||||||
$scope.clientType = $scope.clientTypes[0];
|
$scope.clientType = $scope.clientTypes[0];
|
||||||
|
|
|
@ -172,6 +172,10 @@ module.controller('UserDetailCtrl', function($scope, realm, user, User, $locatio
|
||||||
$scope.user = angular.copy(user);
|
$scope.user = angular.copy(user);
|
||||||
$scope.create = !user.username;
|
$scope.create = !user.username;
|
||||||
|
|
||||||
|
if ($scope.create) {
|
||||||
|
$scope.user.enabled = true;
|
||||||
|
}
|
||||||
|
|
||||||
$scope.changed = false; // $scope.create;
|
$scope.changed = false; // $scope.create;
|
||||||
|
|
||||||
// ID - Name map for required actions. IDs are enum names.
|
// ID - Name map for required actions. IDs are enum names.
|
||||||
|
|
Loading…
Reference in a new issue