mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 14:53:33 +00:00
sync loading spinner
This commit is contained in:
@@ -3,10 +3,13 @@
|
|||||||
|
|
||||||
.controller('settingsSyncController', function ($scope, syncService, toastr) {
|
.controller('settingsSyncController', function ($scope, syncService, toastr) {
|
||||||
$scope.lastSync = '--';
|
$scope.lastSync = '--';
|
||||||
|
$scope.loading = false;
|
||||||
setLastSync();
|
setLastSync();
|
||||||
|
|
||||||
$scope.sync = function () {
|
$scope.sync = function () {
|
||||||
|
$scope.loading = true;
|
||||||
syncService.fullSync(function () {
|
syncService.fullSync(function () {
|
||||||
|
$scope.loading = false;
|
||||||
toastr.success('Syncing complete');
|
toastr.success('Syncing complete');
|
||||||
setLastSync();
|
setLastSync();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -11,6 +11,9 @@
|
|||||||
Sync Vault Now
|
Sync Vault Now
|
||||||
</a>
|
</a>
|
||||||
<small class="text-muted">Last Sync: {{lastSync}}</small>
|
<small class="text-muted">Last Sync: {{lastSync}}</small>
|
||||||
|
<span ng-show="loading" style="display: block; margin-top: 20px;">
|
||||||
|
<i class="text-muted fa fa-lg fa-spinner fa-spin"></i>
|
||||||
|
</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user