Skip to content

Commit 3549abd

Browse files
committed
Fix error page when no nodes exist.
1 parent 5c20d0a commit 3549abd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/views/admin/nodes/index.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<tbody>
5252
@foreach ($nodes as $node)
5353
<tr>
54-
<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>
54+
<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>
5555
<td><a href="/admin/nodes/view/{{ $node->id }}">{{ $node->name }}</td>
5656
<td>{{ $node->a_locationName }}</td>
5757
<td class="hidden-xs">{{ $node->memory }} MB</td>
@@ -76,7 +76,7 @@
7676
type: 'GET',
7777
url: $(element).data('location'),
7878
headers: {
79-
'X-Access-Token': '{{ $node->daemonSecret }}'
79+
'X-Access-Token': $(element).data('secret'),
8080
},
8181
timeout: 5000
8282
}).done(function (data) {

0 commit comments

Comments
 (0)