From eec2057c622dae98e540c35dcd5f73588d7c4758 Mon Sep 17 00:00:00 2001 From: hocine hacherouf Date: Fri, 24 Jun 2022 14:12:18 +0200 Subject: [PATCH] Set snackbar to bottom left + allow duplicated snackbars #745 (#860) --- src/AzureIoTHub.Portal/Client/Program.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/AzureIoTHub.Portal/Client/Program.cs b/src/AzureIoTHub.Portal/Client/Program.cs index 6a9072983..92d4d2d2b 100644 --- a/src/AzureIoTHub.Portal/Client/Program.cs +++ b/src/AzureIoTHub.Portal/Client/Program.cs @@ -7,15 +7,16 @@ namespace AzureIoTHub.Portal.Client using System.Net.Http; using System.Net.Http.Json; using System.Threading.Tasks; - using AzureIoTHub.Portal.Client.Services; + using Services; using AzureIoTHub.Portal.Models.v10; - using AzureIoTHub.Portal.Settings; + using Settings; using Blazored.LocalStorage; using Blazored.Modal; using Microsoft.AspNetCore.Components.WebAssembly.Authentication; using Handlers; using Microsoft.AspNetCore.Components.WebAssembly.Hosting; using Microsoft.Extensions.DependencyInjection; + using MudBlazor; using MudBlazor.Services; using Tewr.Blazor.FileReader; @@ -43,7 +44,11 @@ public static async Task Main(string[] args) _ = builder.Services.AddBlazoredLocalStorage(); _ = builder.Services.AddBlazoredModal(); - _ = builder.Services.AddMudServices(); + _ = builder.Services.AddMudServices(config => + { + config.SnackbarConfiguration.PositionClass = Defaults.Classes.Position.BottomLeft; + config.SnackbarConfiguration.PreventDuplicates = false; + }); _ = builder.Services.AddScoped(); _ = builder.Services.AddScoped();