Added initial voice work edit logic (set favorite / delete) on Api and UI layers.
All checks were successful
ci / build-test (push) Successful in 2m44s
ci / publish-image (push) Successful in 1m45s

This commit is contained in:
2026-05-07 00:07:20 -04:00
parent 2bd7e3b970
commit 9c9e33ebec
14 changed files with 291 additions and 57 deletions

View File

@@ -11,7 +11,10 @@
UseCurrentColor>
</Icon>
}
<span>@ChildContent</span>
@if (ChildContent is not null)
{
<span>@ChildContent</span>
}
</div>
}
else
@@ -26,7 +29,10 @@ else
UseCurrentColor>
</Icon>
}
<span>@ChildContent</span>
@if (ChildContent is not null)
{
<span>@ChildContent</span>
}
</a>
}
@@ -62,6 +68,12 @@ else
[Parameter]
public EventCallback Click { get; set; }
[Parameter]
public bool IsClickable { get; set; }
[Parameter]
public bool ThickBorder { get; set; }
private string GetClasses()
{
string color = Color.ToString().ToLower();
@@ -72,6 +84,17 @@ else
$"color-{color}"
];
// Experimental
if (ChildContent is null)
{
classNames.Add("j-chip-icon-only");
}
if (ThickBorder)
{
classNames.Add("j-chip-thick-border");
}
switch (Varient)
{
case ElementVarient.Filled:
@@ -99,7 +122,7 @@ else
classNames.Add($"varient-tint");
}
if (Click.HasDelegate || string.IsNullOrWhiteSpace(Url) == false)
if (Click.HasDelegate || string.IsNullOrWhiteSpace(Url) == false || IsClickable)
{
classNames.Add("is-clickable");
}