diff --git a/Lantean.QBTMudBlade/Components/TorrentActions.razor b/Lantean.QBTMudBlade/Components/TorrentActions.razor
index ae47297..2ada44e 100644
--- a/Lantean.QBTMudBlade/Components/TorrentActions.razor
+++ b/Lantean.QBTMudBlade/Components/TorrentActions.razor
@@ -22,34 +22,30 @@ else if (RenderType == RenderType.InitialIconsOnly)
{
@foreach (var action in Actions.Take(5))
{
- @if (action is Divider)
+ @if (action.SeparatorBefore)
{
}
- else
- {
-
- }
+
+
}
@Menu(Actions.Skip(5))
}
else if (RenderType == RenderType.Children)
{
- var parent = Actions.FirstOrDefault(a => a.Name == ParentAction?.Name);
+ var parent = Actions.FirstOrDefault(a => a.Text == ParentAction?.Text);
if (parent is not null)
{
@foreach (var action in parent.Children)
{
- @if (action is Divider)
+ @if (action.SeparatorBefore)
{
}
- else
- {
- @action.Name
- }
+
+ @action.Text
}
}
@@ -68,24 +64,25 @@ else
{
foreach (var action in Actions)
{
- if (action is Divider)
+ if (action.SeparatorBefore)
{
}
- else if (!action.Children.Any())
+
+ if (!action.Children.Any())
{
if (action.Icon is null)
{
- @action.Name
+ @action.Text
}
else
{
-
+
}
}
else
{
-
+
@foreach (var childItem in action.Children)
{
@ChildItem(childItem)
@@ -105,24 +102,25 @@ else
{
foreach (var action in Actions)
{
- if (action is Divider)
+ if (action.SeparatorBefore)
{
}
- else if (!action.Children.Any())
+
+ if (!action.Children.Any())
{
if (action.Icon is null)
{
- @action.Name
+ @action.Text
}
else
{
-
+
}
}
else
{
-
+
@foreach (var childItem in action.Children)
{
@ChildItem(childItem)
@@ -138,14 +136,12 @@ else
{
return __builder =>
{
- if (action is Divider)
+ if (action.SeparatorBefore)
{
}
- else
- {
- @action.Name
- }
+
+ @action.Text
};
}
@@ -156,14 +152,15 @@ else
@foreach (var action in actions)
{
- @if (action is Divider)
+ @if (action.SeparatorBefore)
{
}
- else if (!action.Children.Any())
+
+ if (!action.Children.Any())
{
- @action.Name
+ @action.Text
}
else
@@ -171,7 +168,7 @@ else