revocation ui

This commit is contained in:
Bill Burke 2014-03-03 16:01:22 -05:00
parent 01154f18dd
commit e307916233
2 changed files with 3 additions and 2 deletions

View file

@ -386,6 +386,7 @@ module.controller('ApplicationScopeMappingCtrl', function($scope, $http, realm,
});
module.controller('ApplicationRevocationCtrl', function($scope, realm, application, Application, ApplicationPushRevocation, $location, Dialog, Notifications) {
$scope.realm = realm;
$scope.application = application;
var setNotBefore = function() {
@ -416,7 +417,7 @@ module.controller('ApplicationRevocationCtrl', function($scope, realm, applicati
}
$scope.setNotBeforeNow = function() {
$scope.application.notBefore = new Date().getTime()/1000;
Realm.update({ realm : realm.realm, application: $scope.application.name}, $scope.application, function () {
Application.update({ realm : realm.realm, application: $scope.application.name}, $scope.application, function () {
Notifications.success('Not Before cleared for application.');
refresh();
});

View file

@ -290,7 +290,7 @@ module.controller('OAuthClientInstallationCtrl', function($scope, realm, install
module.controller('OAuthClientRevocationCtrl', function($scope, realm, oauth, OAuthClient, $location, Dialog, Notifications) {
$scope.oauth = oauth;
$scope.realm = realm;
var setNotBefore = function() {
if ($scope.oauth.notBefore == 0) {
$scope.notBefore = "None";