oqtane.framework/Oqtane.Client/Modules/Admin/Themes/Index.razor
2019-09-14 15:31:12 -04:00

41 lines
835 B
Plaintext

@using Oqtane.Services
@using Oqtane.Models
@using Oqtane.Modules
@namespace Oqtane.Modules.Admin.Themes
@inherits ModuleBase
@inject IThemeService ThemeService
@if (Themes == null)
{
<p><em>Loading...</em></p>
}
else
{
<table class="table table-borderless">
<thead>
<tr>
<th>Name</th>
</tr>
</thead>
<tbody>
@foreach (var theme in Themes)
{
<tr>
<td>@theme.Name</td>
</tr>
}
</tbody>
</table>
}
@code {
public override SecurityAccessLevel SecurityAccessLevel { get { return SecurityAccessLevel.Host; } }
List<Theme> Themes;
protected override async Task OnInitializedAsync()
{
Themes = await ThemeService.GetThemesAsync();
}
}