revert: remove customizable server icon feature and restore all Proxmox Livewire files to pre-icon state (d24fa01)

This commit is contained in:
2025-12-06 09:42:29 -05:00
parent 1c677c45e0
commit ecb037ce04
2 changed files with 3 additions and 243 deletions

View File

@@ -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([