mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 13:14:45 +02:00
Merge pull request #687 from RMartinOscar/fix/HealthVersion
Fix Node Health not refreshing live & Add tooltip
This commit is contained in:
commit
e717e20996
@ -1,14 +1,30 @@
|
||||
<div>
|
||||
<div wire:poll.10s>
|
||||
@switch($node->systemInformation()['version'] ?? 'false')
|
||||
@case('false')
|
||||
<x-filament::icon
|
||||
x-tooltip="{
|
||||
content: 'Error connecting to node!<br>Check browser console for details.',
|
||||
theme: $store.theme,
|
||||
allowHTML: true,
|
||||
placement: 'bottom',
|
||||
}"
|
||||
:icon="'tabler-heart-off'"
|
||||
@class(['fi-ta-icon-item', $sizeClasses, 'fi-color-custom text-custom-500 dark:text-custom-400', 'fi-color-danger'])
|
||||
@style([\Filament\Support\get_color_css_variables('danger', shades: [400, 500], alias: 'tables::columns.icon-column.item') => true])
|
||||
/>
|
||||
@script
|
||||
<script>
|
||||
console.error(@json($node->systemInformation()['exception']));
|
||||
</script>
|
||||
@endscript
|
||||
@break
|
||||
@default
|
||||
<x-filament::icon
|
||||
x-tooltip="{
|
||||
content: '{{ $node->systemInformation()['version'] }}',
|
||||
theme: $store.theme,
|
||||
placement: 'bottom',
|
||||
}"
|
||||
:icon="'tabler-heartbeat'"
|
||||
@class(['fi-ta-icon-item', $sizeClasses, 'fi-color-custom text-custom-500 dark:text-custom-400', 'fi-color-success' => true])
|
||||
@style([\Filament\Support\get_color_css_variables('success', shades: [400, 500], alias: 'tables::columns.icon-column.item') => true])
|
||||
|
Loading…
x
Reference in New Issue
Block a user