Icons in module actions menu

This commit is contained in:
Pavel Vesely
2020-07-03 10:15:45 +02:00
parent 56537e4785
commit 8e43fcab21
2 changed files with 27 additions and 15 deletions

View File

@ -15,9 +15,20 @@
}
else
{
<a class="dropdown-item" @onclick="(async () => await ModuleAction(action))">@action.Name</a>
<a class="dropdown-item" @onclick="(async () => await ModuleAction(action))">
@if (string.IsNullOrEmpty(action.Icon))
{
@((MarkupString) "&nbsp;&nbsp;");
}
else
{
<span class="oi oi-@action.Icon" aria-hidden="true"></span>
}
&nbsp;
@action.Name
</a>
}
}
</div>
</div>
}
}