Skip to content

Commit

Permalink
fixed notif
Browse files Browse the repository at this point in the history
  • Loading branch information
m-GDEV committed Sep 9, 2024
1 parent 0f806c6 commit cb97f65
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions WardrobeManager.Presentation/Layout/MainLayout.razor
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@inherits LayoutComponentBase
@inject IJSRuntime JSRuntime
@using WardrobeManager.Presentation.Components.Global


<div class="h-full text-base-content flex flex-col body-text transition-all duration-300">
<NavMenu />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<div class="w-full flex flex-col items-center">

<button class="btn btn-primary" @onclick="(Man)">Click me</button>
<button class="btn btn-primary" @onclick="(() => Man())">Click me</button>
@if (error == true) {
<div class="toast toast-top toast-end">
<div class="alert alert-error">
Expand Down Expand Up @@ -101,6 +101,7 @@
bool error = false;
string errorMessage = "";
public FormModel formModel = new FormModel();
public int f = 0;

public bool enabled { get; set; } = false;

Expand Down Expand Up @@ -141,7 +142,7 @@
}

public void Man() {
_notificationService.AddNotification("hello");
_notificationService.AddNotification($"hello {f++}");
}

public class FormModel
Expand Down

0 comments on commit cb97f65

Please sign in to comment.