Merge pull request #281 from stianst/master

KEYCLOAK-357 KEYCLOAK-358 Set enabled default to true when creating appl...
This commit is contained in:
Stian Thorgersen 2014-03-11 13:53:42 +00:00
commit 03a0cce119
3 changed files with 6 additions and 2 deletions

View file

@ -234,7 +234,7 @@ module.controller('ApplicationDetailCtrl', function($scope, realm, application,
$scope.clientType = $scope.clientTypes[1];
}
} else {
$scope.application = {};
$scope.application = { enabled: true };
$scope.application.webOrigins = [];
$scope.application.redirectUris = [];
$scope.clientType = $scope.clientTypes[0];

View file

@ -99,7 +99,7 @@ module.controller('OAuthClientDetailCtrl', function($scope, realm, oauth, OAuthC
$scope.clientType = $scope.clientTypes[1];
}
} else {
$scope.oauth = {};
$scope.oauth = { enabled: true };
$scope.oauth.webOrigins = [];
$scope.oauth.redirectUris = [];
$scope.clientType = $scope.clientTypes[0];

View file

@ -172,6 +172,10 @@ module.controller('UserDetailCtrl', function($scope, realm, user, User, $locatio
$scope.user = angular.copy(user);
$scope.create = !user.username;
if ($scope.create) {
$scope.user.enabled = true;
}
$scope.changed = false; // $scope.create;
// ID - Name map for required actions. IDs are enum names.