feat(Localization) Adding localization text. Fixing bugs in toasts

This commit is contained in:
2022-04-10 19:15:41 -04:00
parent 4322be0053
commit 81659a9f84
29 changed files with 287 additions and 122 deletions
+4 -4
View File
@@ -5,8 +5,7 @@
@if (toastService.HasToasts())
{
<div class="toastsContainer">
@foreach (var toast in toastService.GetToasts())
@foreach( var toast in toastService.GetToasts())
{
<ToastComponent Toast="toast"/>
}
@@ -18,12 +17,14 @@
position: fixed;
top: 64px;
right: 64px;
display: flex;
flex-direction: column;
gap: 8px;
}
</style>
@code {
protected override void OnInitialized()
{
toastService.Subscribe(OnUpdate);
@@ -38,5 +39,4 @@
{
StateHasChanged();
}
}