#98, sync button now shows total number of outstanding syncs instead of just pushes

This commit is contained in:
azivner
2018-07-24 21:43:15 +02:00
parent 37ab7b4641
commit b6935abcc9
4 changed files with 13 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
import utils from './utils.js';
import infoService from "./info.js";
const $changesToPushCount = $("#changes-to-push-count");
const $outstandingSyncsCount = $("#outstanding-syncs-count");
const messageHandlers = [];
@@ -43,7 +43,7 @@ function handleMessage(event) {
messageHandler(syncData);
}
$changesToPushCount.html(message.changesToPushCount);
$outstandingSyncsCount.html(message.outstandingSyncs);
}
else if (message.type === 'sync-hash-check-failed') {
infoService.showError("Sync check failed!", 60000);