diff --git a/resources/themes/pterodactyl/admin/nodes/index.blade.php b/resources/themes/pterodactyl/admin/nodes/index.blade.php index 25459e46..a96d3224 100644 --- a/resources/themes/pterodactyl/admin/nodes/index.blade.php +++ b/resources/themes/pterodactyl/admin/nodes/index.blade.php @@ -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); diff --git a/resources/themes/pterodactyl/admin/servers/index.blade.php b/resources/themes/pterodactyl/admin/servers/index.blade.php index f9a82497..24fe4d81 100644 --- a/resources/themes/pterodactyl/admin/servers/index.blade.php +++ b/resources/themes/pterodactyl/admin/servers/index.blade.php @@ -39,8 +39,8 @@ - + @@ -49,8 +49,8 @@ @foreach ($servers as $server) - +
ID Server NameUUID Owner Node Connection
{{ $server->uuidShort }} {{ $server->name }}{{ $server->uuid }} {{ $server->user->username }} {{ $server->node->name }}