addressed consistency between theme loading and moduledefinition loading, added theme detailed UI view
This commit is contained in:
		| @ -1,4 +1,5 @@ | ||||
| @namespace Oqtane.Modules.Admin.Themes | ||||
| @using System.Net | ||||
| @inherits ModuleBase | ||||
| @inject NavigationManager NavigationManager | ||||
| @inject IThemeService ThemeService | ||||
| @ -14,25 +15,27 @@ else | ||||
|  | ||||
|     <Pager Items="@_themes"> | ||||
|         <Header> | ||||
|             <th> </th> | ||||
|             <th> </th> | ||||
|             <th>Name</th> | ||||
|             <th>Version</th> | ||||
|             <th> </th> | ||||
|         </Header> | ||||
|         <Row> | ||||
|             <td><ActionLink Action="View" Parameters="@($"name=" + WebUtility.UrlEncode(context.ThemeName))" /></td> | ||||
|             <td> | ||||
|                 @if (context.AssemblyName != "Oqtane.Client") | ||||
|                 { | ||||
|                     { | ||||
|                     <ActionDialog Header="Delete Theme" Message="@("Are You Sure You Wish To Delete The " + context.Name + " Theme?")" Action="Delete" Security="SecurityAccessLevel.Host" Class="btn btn-danger" OnClick="@(async () => await DeleteTheme(context))" /> | ||||
|                 } | ||||
|                     } | ||||
|             </td> | ||||
|             <td>@context.Name</td> | ||||
|             <td>@context.Version</td> | ||||
|             <td> | ||||
|                 @if (UpgradeAvailable(context.ThemeName, context.Version)) | ||||
|                 { | ||||
|                     { | ||||
|                     <button type="button" class="btn btn-success" @onclick=@(async () => await DownloadTheme(context.ThemeName, context.Version))>Upgrade</button> | ||||
|                 } | ||||
|                     } | ||||
|             </td> | ||||
|         </Row> | ||||
|     </Pager> | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shaun Walker
					Shaun Walker