Skip to content

Commit

Permalink
Merge pull request #519 from Niter88/master
Browse files Browse the repository at this point in the history
Better navigation on "Edit"
  • Loading branch information
sven-n authored Dec 8, 2024
2 parents 24f774b + 1c7c676 commit 8b0cd76
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Web/AdminPanel/Components/Form/ItemTable.razor
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
urlPrefix = "edit-account";
}

<button type="button" class="btn-info" @onclick="@(() => this._navigationManager.NavigateTo($"{urlPrefix}/{typeof(TItem).FullName}/{item.Id}"))">Edit</button>
<a href="@($"{urlPrefix}/{typeof(TItem).FullName}/{item.Id}")" class="btn btn-info">Edit</a>
}
</td>
<td>
Expand Down
2 changes: 1 addition & 1 deletion src/Web/AdminPanel/Pages/EditConfigGrid.razor
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
@{
var targetUrl = $"edit-config/{this.TypeString}/" + context.Id;
}
<button type="button" class="btn-info" @onclick="@(() => this.NavigationManager.NavigateTo(targetUrl))">Edit</button>
<a href="@(targetUrl)" class="btn btn-info">Edit</a>
<button type="button" class="btn-danger" @onclick="@(() => this.OnDeleteButtonClickAsync(context))"><span class="oi oi-trash"></span> Delete</button>
</TemplateColumn>
</QuickGrid>
Expand Down
1 change: 1 addition & 0 deletions src/Web/AdminPanel/Shared/ConfigNavMenu.razor
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<NavLink href="@($"edit-config-grid/{typeof(CharacterClass).FullName}/")">Character Classes</NavLink>
<NavLink href="@($"edit-config-grid/{typeof(Skill).FullName}/")">Skills</NavLink>
<NavLink href="@($"edit-config-grid/{typeof(ItemDefinition).FullName}/")">Items</NavLink>
<NavLink href="@($"edit-config-grid/{typeof(DropItemGroup).FullName}/")">Drop Item Groups</NavLink>
<NavLink href="@($"edit-config-grid/{typeof(GameMapDefinition).FullName}/")">Maps</NavLink>
<NavLink href="@($"edit-config-grid/{typeof(MiniGameDefinition).FullName}/")">Mini Games</NavLink>
<NavLink href="@($"edit-config-grid/{typeof(WarpInfo).FullName}/")">Warp List</NavLink>
Expand Down

0 comments on commit 8b0cd76

Please sign in to comment.