From e4dbabbbd7767bb808ca6f46000264f8cb8d18ec Mon Sep 17 00:00:00 2001 From: GuillaumeM <86654731+GuillaumeM-2ISA@users.noreply.github.com> Date: Mon, 6 Feb 2023 17:24:43 +0100 Subject: [PATCH] Feature: remove blazored modal references (#1738) * remove blazored modal references * Fix remove blazored modal references * remove CascadingBlazoredModal --- src/AzureIoTHub.Portal.Client/App.razor | 47 +++++++++---------- .../AzureIoTHub.Portal.Client.csproj | 3 +- src/AzureIoTHub.Portal.Client/Program.cs | 2 - 3 files changed, 23 insertions(+), 29 deletions(-) diff --git a/src/AzureIoTHub.Portal.Client/App.razor b/src/AzureIoTHub.Portal.Client/App.razor index fba280a04..87a059950 100644 --- a/src/AzureIoTHub.Portal.Client/App.razor +++ b/src/AzureIoTHub.Portal.Client/App.razor @@ -1,32 +1,29 @@ -@using Blazored.Modal @using Microsoft.AspNetCore.Authorization @attribute [Authorize] - - - - - - @if (!context.User.Identity.IsAuthenticated) - { - - } - else - { - You are not authorized to access this resource. - } - - - - - Not found - - Sorry, there's nothing at this address. - - - - + + + + + @if (!context.User.Identity.IsAuthenticated) + { + + } + else + { + You are not authorized to access this resource. + } + + + + + Not found + + Sorry, there's nothing at this address. + + + diff --git a/src/AzureIoTHub.Portal.Client/AzureIoTHub.Portal.Client.csproj b/src/AzureIoTHub.Portal.Client/AzureIoTHub.Portal.Client.csproj index c762532ed..b53616234 100644 --- a/src/AzureIoTHub.Portal.Client/AzureIoTHub.Portal.Client.csproj +++ b/src/AzureIoTHub.Portal.Client/AzureIoTHub.Portal.Client.csproj @@ -1,4 +1,4 @@ - + net7.0 @@ -9,7 +9,6 @@ - diff --git a/src/AzureIoTHub.Portal.Client/Program.cs b/src/AzureIoTHub.Portal.Client/Program.cs index 1d99c4214..f4cd8a767 100644 --- a/src/AzureIoTHub.Portal.Client/Program.cs +++ b/src/AzureIoTHub.Portal.Client/Program.cs @@ -8,7 +8,6 @@ using AzureIoTHub.Portal.Models.v10; using AzureIoTHub.Portal.Settings; using Blazored.LocalStorage; -using Blazored.Modal; using Microsoft.AspNetCore.Components.Web; using Microsoft.AspNetCore.Components.WebAssembly.Authentication; using Microsoft.AspNetCore.Components.WebAssembly.Hosting; @@ -60,7 +59,6 @@ _ = builder.Services.AddFileReaderService(o => o.UseWasmSharedBuffer = true); _ = builder.Services.AddBlazoredLocalStorage(); -_ = builder.Services.AddBlazoredModal(); _ = builder.Services.AddMudServices(config => { config.SnackbarConfiguration.PositionClass = Defaults.Classes.Position.BottomLeft;
You are not authorized to access this resource.
Sorry, there's nothing at this address.