Fix icon component name generation for vaadin prefix
This commit is contained in:
@@ -53,7 +53,11 @@
|
||||
$iconPrefix = $service->proxmoxServer->user_set_icon_prefix ?? 'ri';
|
||||
$iconName = $service->proxmoxServer->user_set_icon;
|
||||
$iconColor = $service->proxmoxServer->user_set_icon_color;
|
||||
$componentName = $iconPrefix === 'vaadin' ? 'vaadin-' . $iconName : $iconPrefix . '-' . $iconName;
|
||||
if ($iconPrefix === 'vaadin') {
|
||||
$componentName = 'vaadin-' . str_replace('_', '-', $iconName);
|
||||
} else {
|
||||
$componentName = $iconPrefix . '-' . $iconName;
|
||||
}
|
||||
@endphp
|
||||
<x-dynamic-component :component="$componentName" class="size-6" :style="$iconColor ? 'color: ' . $iconColor : ''" />
|
||||
@else
|
||||
|
||||
Reference in New Issue
Block a user