1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

cipher request login subclass, sync fixes

This commit is contained in:
Kyle Spearrin
2017-09-21 10:43:33 -04:00
parent fa88af8323
commit 56e1f6c25b
4 changed files with 27 additions and 11 deletions

View File

@@ -9,11 +9,16 @@
$scope.sync = function () {
$scope.loading = true;
syncService.fullSync(true, function () {
$analytics.eventTrack('Synced Full');
syncService.fullSync(true, function (success) {
$scope.loading = false;
toastr.success(i18nService.syncingComplete);
setLastSync();
if (success) {
$analytics.eventTrack('Synced Full');
toastr.success(i18nService.syncingComplete);
}
else {
toastr.error(i18nService.syncingFailed);
}
});
};