Skip to content

Commit

Permalink
Set snackbar to bottom left + allow duplicated snackbars #745 (#860)
Browse files Browse the repository at this point in the history
  • Loading branch information
hocinehacherouf authored Jun 24, 2022
1 parent 1683f74 commit eec2057
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/AzureIoTHub.Portal/Client/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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<ILayoutService, LayoutService>();
_ = builder.Services.AddScoped<IDashboardLayoutService, DashboardLayoutService>();
Expand Down

0 comments on commit eec2057

Please sign in to comment.