Navbar reorder

This commit is contained in:
Andre Beging
2022-05-31 16:13:38 +02:00
parent 7ae53bd984
commit 3487cdcb58
3 changed files with 20 additions and 16 deletions

View File

@@ -12,9 +12,10 @@
</LayoutView>
</NotFound>
</Router>
<MessageAlert/>
</Blazorise.ThemeProvider>
<MessageAlert/>
@code{
private Theme theme = new()

View File

@@ -13,11 +13,6 @@ namespace FoodsharingSiegen.Server.Pages
{
#region Dependencies (Injected)
/// <summary>
/// Gets or sets the value of the message service (ab)
/// </summary>
[Inject] private IMessageService MessageService { get; set; } = null!;
/// <summary>
/// Gets or sets the value of the prospect service (ab)
/// </summary>
@@ -151,7 +146,7 @@ namespace FoodsharingSiegen.Server.Pages
/// <param name="arg">The arg</param>
private async Task RemoveInteraction(Guid arg)
{
var confirm = await MessageService.Confirm("Interaktion wirklich löschen?", "Bestätigen", o => {
var confirm = await Message.Confirm("Interaktion wirklich löschen?", "Bestätigen", o => {
o.ConfirmButtonText = "Ja, wirklich!";
o.CancelButtonText = "Abbrechen";
o.ShowMessageIcon = false;
@@ -162,6 +157,8 @@ namespace FoodsharingSiegen.Server.Pages
await ProspectService.RemoveInteraction(arg);
await LoadProspects();
}
await InvokeAsync(StateHasChanged);
}
#endregion

View File

@@ -1,9 +1,20 @@
<nav class="flex-column">
<div class="nav-logo"></div>
<div class="nav-item px-3">
<NavLink class="nav-link" href="profile" Match="NavLinkMatch.All">
<span class="fas fa-user mr-1" aria-hidden="true" style="font-size: 1.4em;"></span> Profil
</NavLink>
<div class="row px-3">
<div class="col">
<div class="nav-item">
<NavLink class="nav-link justify-content-center" href="profile" Match="NavLinkMatch.All" title="Profil">
<span class="fas fa-user mr-1" aria-hidden="true" style="font-size: 1.4em;"></span>
</NavLink>
</div>
</div>
<div class="col">
<div class="nav-item">
<NavLink class="nav-link justify-content-center" href="logout" Match="NavLinkMatch.All" title="Ausloggen">
<span class="fa-solid fa-door-open mr-1" aria-hidden="true" style="font-size: 1.4em;"></span>
</NavLink>
</div>
</div>
</div>
<div class="nav-item px-3">
<NavLink class="nav-link" href="" Match="NavLinkMatch.All">
@@ -20,9 +31,4 @@
<span class="fa-solid fa-clock-rotate-left mr-1" aria-hidden="true" style="font-size: 1.4em;"></span> Aktivitäten
</NavLink>
</div>
<div class="nav-item px-3 pt-5">
<NavLink class="nav-link" href="logout" Match="NavLinkMatch.All">
<span class="fa-solid fa-door-open mr-1" aria-hidden="true" style="font-size: 1.4em;"></span> Ausloggen
</NavLink>
</div>
</nav>