Merge pull request #1752 from leigh-pointer/PView
Fix for #1749 navigate to sub sub pages
This commit is contained in:
		| @ -11,13 +11,14 @@ | ||||
|  | ||||
|     <Pager Items="@PageState.Pages.Where(item => !item.IsDeleted)"> | ||||
|         <Header> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th>@SharedLocalizer["Name"]</th> | ||||
|         <th style="width: 1px;"> </th> | ||||
|         <th style="width: 1px;"> </th> | ||||
|         <th>@SharedLocalizer["Name"]</th> | ||||
|         </Header> | ||||
|         <Row> | ||||
|             <td><ActionLink Action="Edit" Parameters="@($"id=" + context.PageId.ToString())" ResourceKey="EditPage" /></td> | ||||
|             <td><ActionDialog Header="Delete Page" Message="@string.Format(Localizer["Confirm.Page.Delete"], context.Name)" Action="Delete" Security="SecurityAccessLevel.Admin" Class="btn btn-danger" OnClick="@(async () => await DeletePage(context))" ResourceKey="DeletePage" /></td> | ||||
|             <td><button type="button" class="btn btn-secondary" @onclick="@(async () => Browse(context))">@Localizer["Browse"]</button></td> | ||||
|             <td>@(new string('-', context.Level * 2))@(context.Name)</td> | ||||
|         </Row> | ||||
|     </Pager> | ||||
| @ -42,4 +43,8 @@ | ||||
|             AddModuleMessage(Localizer["Error.Page.Delete"], MessageType.Error); | ||||
|         } | ||||
|     } | ||||
|     protected string Browse(Page page) | ||||
|     { | ||||
|         return string.IsNullOrEmpty(page.Url) ? NavigateUrl(page.Path) : page.Url; | ||||
|     } | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shaun Walker
					Shaun Walker