pelican-panel-mirror/resources/views/livewire/node-system-information.blade.php
notCharles d565441b6a Change 'exception'
Remove the exception and just report the whole error.
2024-11-13 15:58:20 -05:00

34 lines
1.5 KiB
PHP

<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())); // TODO Make Purdy
</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])
/>
@endswitch
</div>