Properly display node status with newer daemon versions
This commit is contained in:
parent
1ad715f1a3
commit
d93f88f471
1 changed files with 3 additions and 0 deletions
|
@ -78,6 +78,9 @@ function pingNodes() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
url: $(element).data('location'),
|
url: $(element).data('location'),
|
||||||
|
headers: {
|
||||||
|
'X-Access-Token': '{{ $node->daemonSecret }}'
|
||||||
|
},
|
||||||
timeout: 5000
|
timeout: 5000
|
||||||
}).done(function (data) {
|
}).done(function (data) {
|
||||||
$(element).removeClass('text-muted').find('i').removeClass().addClass('fa fa-fw fa-heartbeat faa-pulse animated').css('color', '#50af51');
|
$(element).removeClass('text-muted').find('i').removeClass().addClass('fa fa-fw fa-heartbeat faa-pulse animated').css('color', '#50af51');
|
||||||
|
|
Reference in a new issue