admin: Fix toast with yes/no after sync
This commit is contained in:
parent
9d639a0315
commit
83468ad723
|
@ -635,10 +635,10 @@ angular.module("FICApp")
|
|||
$scope.deepSyncInProgress = true;
|
||||
$http.post(url).then(function() {
|
||||
$scope.deepSyncInProgress = false;
|
||||
$scope.addToast('success', 'Synchronisation intégrale terminée.', '<a href="check_import.html" target="_self">Voir le rapport</a>.', 15000);
|
||||
$scope.addToast('success', 'Synchronisation intégrale terminée.', '<a href="check_import.html" target="_self">Voir le rapport</a>.', null, null, 15000);
|
||||
}, function(response) {
|
||||
$scope.deepSyncInProgress = false;
|
||||
$scope.addToast('warning', 'Synchronisation intégrale terminée.', '<a href="check_import.html" target="_self">Voir le rapport</a>.', 15000);
|
||||
$scope.addToast('warning', 'Synchronisation intégrale terminée.', '<a href="check_import.html" target="_self">Voir le rapport</a>.', null, null, 15000);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
@ -648,10 +648,10 @@ angular.module("FICApp")
|
|||
$scope.deepSyncInProgress = true;
|
||||
$http.post("api/sync/speed").then(function() {
|
||||
$scope.deepSyncInProgress = false;
|
||||
$scope.addToast('success', 'Synchronisation profonde rapide terminée.', '<a href="check_import.html" target="_self">Voir le rapport</a>.', 15000);
|
||||
$scope.addToast('success', 'Synchronisation profonde rapide terminée.', '<a href="check_import.html" target="_self">Voir le rapport</a>.', null, null, 15000);
|
||||
}, function(response) {
|
||||
$scope.deepSyncInProgress = false;
|
||||
$scope.addToast('warning', 'Synchronisation profinde rapide terminée.', '<a href="check_import.html" target="_self">Voir le rapport</a>.', 15000);
|
||||
$scope.addToast('warning', 'Synchronisation profinde rapide terminée.', '<a href="check_import.html" target="_self">Voir le rapport</a>.', null, null, 15000);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue