Fix error page when no nodes exist.

This commit is contained in:
Dane Everitt 2016-11-28 13:51:18 -05:00
parent 5c20d0a748
commit 3549abd5ae
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -51,7 +51,7 @@
<tbody>
@foreach ($nodes as $node)
<tr>
<td class="text-center text-muted left-icon" data-action="ping" data-location="{{ $node->scheme }}://{{ $node->fqdn }}:{{ $node->daemonListen }}"><i class="fa fa-fw fa-refresh fa-spin"></i></td>
<td class="text-center text-muted left-icon" data-action="ping" data-secret="{{ $node->daemonSecret }}" data-location="{{ $node->scheme }}://{{ $node->fqdn }}:{{ $node->daemonListen }}"><i class="fa fa-fw fa-refresh fa-spin"></i></td>
<td><a href="/admin/nodes/view/{{ $node->id }}">{{ $node->name }}</td>
<td>{{ $node->a_locationName }}</td>
<td class="hidden-xs">{{ $node->memory }} MB</td>
@ -76,7 +76,7 @@ $(document).ready(function () {
type: 'GET',
url: $(element).data('location'),
headers: {
'X-Access-Token': '{{ $node->daemonSecret }}'
'X-Access-Token': $(element).data('secret'),
},
timeout: 5000
}).done(function (data) {