admin: add the ability to deep sync from interface
This commit is contained in:
parent
4dba8dc882
commit
6aacce23ca
2 changed files with 21 additions and 2 deletions
|
|
@ -453,6 +453,20 @@ angular.module("FICApp")
|
|||
});
|
||||
}
|
||||
};
|
||||
$scope.deepSyncInProgress = false;
|
||||
$scope.deepSync = function(type) {
|
||||
$rootScope.newYesNoBox('warning', 'Faire une synchronisation intégrale ?', '',
|
||||
function() {
|
||||
$scope.deepSyncInProgress = true;
|
||||
$http.post("/api/sync/deep").then(function() {
|
||||
$scope.deepSyncInProgress = false;
|
||||
$rootScope.newBox('success', 'Synchronisation intégrale terminée.', '<a href="check_import.html">Voir le rapport</a>.', 15000);
|
||||
}, function(response) {
|
||||
$scope.deepSyncInProgress = false;
|
||||
$rootScope.newBox('warning', 'Synchronisation intégrale terminée.', '<a href="check_import.html">Voir le rapport</a>.', 15000);
|
||||
});
|
||||
});
|
||||
};
|
||||
})
|
||||
|
||||
.controller("PKIController", function($scope, $rootScope, Certificate, CACertificate, Team, $location, $http) {
|
||||
|
|
|
|||
Reference in a new issue