reduced dependencies of utils

This commit is contained in:
azivner
2018-03-25 21:29:35 -04:00
parent ac1b06967f
commit d3316cd09c
17 changed files with 93 additions and 85 deletions

View File

@@ -1,4 +1,5 @@
import utils from './utils.js';
import infoService from "./info.js";
const $changesToPushCount = $("#changes-to-push-count");
@@ -45,10 +46,10 @@ function handleMessage(event) {
$changesToPushCount.html(message.changesToPushCount);
}
else if (message.type === 'sync-hash-check-failed') {
utils.utils.showError("Sync check failed!", 60000);
infoService.showError("Sync check failed!", 60000);
}
else if (message.type === 'consistency-checks-failed') {
utils.showError("Consistency checks failed! See logs for details.", 50 * 60000);
infoService.showError("Consistency checks failed! See logs for details.", 50 * 60000);
}
}
@@ -91,7 +92,7 @@ setTimeout(() => {
await connectionBrokenNotification.close();
connectionBrokenNotification = null;
utils.showMessage("Re-connected to server");
infoService.showMessage("Re-connected to server");
}
ws.send(JSON.stringify({