Added initial voice work edit logic (set favorite / delete) on Api and UI layers.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user