fix: add hidden-label warning badge, use null color fallback in ProImportService
This commit is contained in:
parent
41d4bfe2b7
commit
84adf2b6fb
|
|
@ -117,7 +117,7 @@ private function upsertSong(ProSong $proSong): Song
|
|||
|
||||
if ($existingLabel === null) {
|
||||
$color = $proGroup->getColor();
|
||||
$hexColor = MacroColorConverter::fromRgba($color) ?? '#808080';
|
||||
$hexColor = MacroColorConverter::fromRgba($color);
|
||||
|
||||
$existingLabel = Label::create([
|
||||
'name' => $groupName,
|
||||
|
|
|
|||
|
|
@ -121,6 +121,13 @@ function positionLabel(pos) {
|
|||
>
|
||||
→ {{ a.label.name }}
|
||||
</span>
|
||||
<span
|
||||
v-if="a.position === 'by_label' && a.label?.hidden_at"
|
||||
class="rounded bg-red-100 px-1.5 py-0.5 text-xs text-red-700"
|
||||
data-testid="warning-hidden-label"
|
||||
>
|
||||
⚠ Label deaktiviert
|
||||
</span>
|
||||
<span
|
||||
v-if="a.macro?.hidden_at"
|
||||
class="rounded bg-amber-100 px-1.5 py-0.5 text-xs text-amber-700"
|
||||
|
|
|
|||
Loading…
Reference in a new issue