Small UI tweaks

This commit is contained in:
Dane Everitt 2018-02-17 14:41:32 -06:00
parent d86c35d80f
commit c8d0286ec4
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 9 additions and 3 deletions

View file

@ -95,8 +95,14 @@
title: 'v' + data.version,
});
$(element).removeClass('text-muted').find('i').removeClass().addClass('fa fa-fw fa-heartbeat faa-pulse animated').css('color', '#50af51');
}).fail(function () {
}).fail(function (error) {
var errorText = 'Error connecting to node! Check browser console for details.';
try {
errorText = error.responseJSON.errors[0].detail || errorText;
} catch (ex) {}
$(element).removeClass('text-muted').find('i').removeClass().addClass('fa fa-fw fa-heart-o').css('color', '#d9534f');
$(element).find('i').tooltip({ title: errorText });
});
}).promise().done(function () {
setTimeout(pingNodes, 10000);