Reworking Sync Notification Warnings - ethoFS Uploads
This commit is contained in:
@@ -61,12 +61,6 @@ function StartSyncProcess() {
|
|||||||
if (!EthoTransactions.getIsSyncing()) {
|
if (!EthoTransactions.getIsSyncing()) {
|
||||||
SyncProgress.animate(1);
|
SyncProgress.animate(1);
|
||||||
SyncProgress.setText(vsprintf("%d/%d (100%%)", [localBlock.number, localBlock.number]));
|
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) {
|
if (alreadyCatchedUp == false) {
|
||||||
@@ -82,12 +76,6 @@ function StartSyncProcess() {
|
|||||||
|
|
||||||
// signal that the sync is complete
|
// signal that the sync is complete
|
||||||
$(document).trigger("onSyncComplete");
|
$(document).trigger("onSyncComplete");
|
||||||
(function($, _M) {
|
|
||||||
M.toast({
|
|
||||||
html: 'Your Node is fully synced and operational.',
|
|
||||||
displayLength: 40000
|
|
||||||
});
|
|
||||||
}(jQuery, M));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -1409,6 +1409,22 @@ EthoUploads = new Uploads();
|
|||||||
$(document).on("render_uploads", function () {
|
$(document).on("render_uploads", function () {
|
||||||
$('#privatekeytable').hide();
|
$('#privatekeytable').hide();
|
||||||
$('#walletpasswordtable').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
|
// Misc
|
||||||
$ethomessage = document.querySelector('.etho-message')
|
$ethomessage = document.querySelector('.etho-message')
|
||||||
$nodeId = document.querySelector('.node-id')
|
$nodeId = document.querySelector('.node-id')
|
||||||
@@ -1474,13 +1490,6 @@ $(document).on("render_uploads", function() {
|
|||||||
$('#walletpasswordtable').hide();
|
$('#walletpasswordtable').hide();
|
||||||
$('#privatekeytable').show();
|
$('#privatekeytable').show();
|
||||||
} else {
|
} 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;
|
privateKeyLogin = false;
|
||||||
$("#sendFromAddressValue").show();
|
$("#sendFromAddressValue").show();
|
||||||
$('#privatekeytable').hide();
|
$('#privatekeytable').hide();
|
||||||
@@ -1495,6 +1504,13 @@ $(document).on("render_uploads", function() {
|
|||||||
$("#sendFromAddressValue").hide();
|
$("#sendFromAddressValue").hide();
|
||||||
$('#walletpasswordtable').hide();
|
$('#walletpasswordtable').hide();
|
||||||
$('#privatekeytable').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');
|
$('#ethofsLoginModal').iziModal('open');
|
||||||
|
|||||||
Reference in New Issue
Block a user