diff --git a/extensions/Servers/Proxmox/Livewire/Overview.php b/extensions/Servers/Proxmox/Livewire/Overview.php index ab6a3e9f0..a31faf9ab 100644 --- a/extensions/Servers/Proxmox/Livewire/Overview.php +++ b/extensions/Servers/Proxmox/Livewire/Overview.php @@ -22,12 +22,6 @@ class Overview extends Component public $isEditingPassword = false; public $passwordError = ''; - // Icon customization properties - public bool $showIconModal = false; - public string $selectedIcon = ''; - public string $selectedIconColor = '#3b82f6'; - public string $iconSearchQuery = ''; - public string $cpuTimeRange = 'hour'; public string $cpuAggregation = 'average'; @@ -527,44 +521,6 @@ class Overview extends Component } } - // Icon customization methods - public function openIconModal() - { - $this->selectedIcon = $this->server->user_set_icon ?? ''; - $this->selectedIconColor = $this->server->user_set_icon_color ?? '#3b82f6'; - $this->iconSearchQuery = ''; - $this->showIconModal = true; - } - - public function closeIconModal() - { - $this->showIconModal = false; - } - - public function saveIcon($icon = null, $color = null) - { - $this->server->update([ - 'user_set_icon' => $icon ?: null, - 'user_set_icon_color' => $color ?: null, - ]); - - $this->showIconModal = false; - $this->notify('Icon saved successfully', 'success'); - } - - public function resetIcon() - { - $this->server->update([ - 'user_set_icon' => null, - 'user_set_icon_color' => null, - ]); - - $this->selectedIcon = ''; - $this->selectedIconColor = '#3b82f6'; - $this->showIconModal = false; - $this->notify('Icon reset to default', 'success'); - } - public function render() { return view('proxmox::overview')->layoutData([ diff --git a/extensions/Servers/Proxmox/views/components/layout.blade.php b/extensions/Servers/Proxmox/views/components/layout.blade.php index 17f92149f..74edf9834 100644 --- a/extensions/Servers/Proxmox/views/components/layout.blade.php +++ b/extensions/Servers/Proxmox/views/components/layout.blade.php @@ -6,20 +6,12 @@ 'statusPollingInterval' => '30s', ]) -{{-- Remix Icons CSS for server icon customization --}} -@push('styles') - -@endpush - @php $vmStatus = optional($status)->status; $pollSuffix = $statusPollingInterval ? '.' . $statusPollingInterval : ''; $pollAttribute = $statusPolling ? 'wire:poll' . $pollSuffix . '="loadVmStatus"' : ''; @endphp -{{-- Inline load Remix Icons CSS as fallback --}} - -
@if($server->status === 'active') @@ -46,46 +38,9 @@ @endphp
-
- - @if($view === 'overview') - - @else -
- @if($server->user_set_icon) - @php - $iconColor = $server->user_set_icon_color ?: 'currentColor'; - $iconName = str_starts_with($server->user_set_icon, 'ri-') - ? $server->user_set_icon - : 'ri-' . $server->user_set_icon; - @endphp - - @else - - @endif -
- @endif - - {{ $server->hostname }} - -
+ + {{ $server->hostname }} +
- @if($view === 'overview') - -
- - - - -
- @endif - @else @php $statuses = [