Reworking Sync Notification Warnings - ethoFS Uploads
This commit is contained in:
@@ -61,12 +61,6 @@ function StartSyncProcess() {
|
||||
if (!EthoTransactions.getIsSyncing()) {
|
||||
SyncProgress.animate(1);
|
||||
SyncProgress.setText(vsprintf("%d/%d (100%%)", [localBlock.number, localBlock.number]));
|
||||
(function($, _M) {
|
||||
M.toast({
|
||||
html: 'Your Node is still syncing please do not attempt to use the wallet.',
|
||||
displayLength: 10000
|
||||
});
|
||||
}(jQuery, M));
|
||||
}
|
||||
|
||||
if (alreadyCatchedUp == false) {
|
||||
@@ -82,12 +76,6 @@ function StartSyncProcess() {
|
||||
|
||||
// signal that the sync is complete
|
||||
$(document).trigger("onSyncComplete");
|
||||
(function($, _M) {
|
||||
M.toast({
|
||||
html: 'Your Node is fully synced and operational.',
|
||||
displayLength: 40000
|
||||
});
|
||||
}(jQuery, M));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -1409,6 +1409,22 @@ EthoUploads = new Uploads();
|
||||
$(document).on("render_uploads", function () {
|
||||
$('#privatekeytable').hide();
|
||||
$('#walletpasswordtable').hide();
|
||||
|
||||
if (isFullySynced) {
|
||||
(function ($, _M) {
|
||||
M.toast({
|
||||
html: 'Node is fully synced and operational.',
|
||||
displayLength: 10000
|
||||
});
|
||||
}(jQuery, M));
|
||||
} else {
|
||||
(function ($, _M) {
|
||||
M.toast({
|
||||
html: 'Node is still syncing. Please do not attempt to use the wallet or ethoFS upload system.',
|
||||
displayLength: 10000
|
||||
});
|
||||
}(jQuery, M));
|
||||
}
|
||||
// Misc
|
||||
$ethomessage = document.querySelector('.etho-message')
|
||||
$nodeId = document.querySelector('.node-id')
|
||||
@@ -1474,13 +1490,6 @@ $(document).on("render_uploads", function() {
|
||||
$('#walletpasswordtable').hide();
|
||||
$('#privatekeytable').show();
|
||||
} else {
|
||||
(function($, _M) {
|
||||
M.toast({
|
||||
html: '<i class="small material-icons">warning </i> If your wallet has a default name e.g: Account 1, you will not be able to select it.',
|
||||
displayLength: 10000,
|
||||
classes: 'warning'
|
||||
});
|
||||
}(jQuery, M));
|
||||
privateKeyLogin = false;
|
||||
$("#sendFromAddressValue").show();
|
||||
$('#privatekeytable').hide();
|
||||
@@ -1495,6 +1504,13 @@ $(document).on("render_uploads", function() {
|
||||
$("#sendFromAddressValue").hide();
|
||||
$('#walletpasswordtable').hide();
|
||||
$('#privatekeytable').hide();
|
||||
(function ($, _M) {
|
||||
M.toast({
|
||||
html: '<i class="small material-icons">warning </i> If your wallet has a default name e.g: Account 1, you will not be able to select it.',
|
||||
displayLength: 10000,
|
||||
classes: 'warning'
|
||||
});
|
||||
}(jQuery, M));
|
||||
}
|
||||
});
|
||||
$('#ethofsLoginModal').iziModal('open');
|
||||
|
||||
Reference in New Issue
Block a user