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> </LayoutView>
</NotFound> </NotFound>
</Router> </Router>
<MessageAlert/>
</Blazorise.ThemeProvider> </Blazorise.ThemeProvider>
<MessageAlert/>
@code{ @code{
private Theme theme = new() private Theme theme = new()

View File

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

View File

@@ -1,9 +1,20 @@
<nav class="flex-column"> <nav class="flex-column">
<div class="nav-logo"></div> <div class="nav-logo"></div>
<div class="nav-item px-3"> <div class="row px-3">
<NavLink class="nav-link" href="profile" Match="NavLinkMatch.All"> <div class="col">
<span class="fas fa-user mr-1" aria-hidden="true" style="font-size: 1.4em;"></span> Profil <div class="nav-item">
</NavLink> <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>
<div class="nav-item px-3"> <div class="nav-item px-3">
<NavLink class="nav-link" href="" Match="NavLinkMatch.All"> <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 <span class="fa-solid fa-clock-rotate-left mr-1" aria-hidden="true" style="font-size: 1.4em;"></span> Aktivitäten
</NavLink> </NavLink>
</div> </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> </nav>