From bcce62f28e25d7b67132d0ad8b695593be4f4c48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20Ko=C5=BEelj?= Date: Thu, 16 Mar 2023 13:56:28 +0100 Subject: [PATCH] Upgrade modal use cases and functions Add modal types --- .../MainLayout.razor | 1 + .../Components/ModalDialog.razor | 40 +++++++++---------- .../Components/ModalDialog.razor.cs | 32 ++++++++++++++- .../Models/Modal/ModalEvent.cs | 2 + .../Models/Modal/ModalOptions.cs | 6 ++- .../Services/ModalDialogService.cs | 22 +++++++++- 6 files changed, 79 insertions(+), 24 deletions(-) diff --git a/src/Connected.Components.Showcase.Runner/MainLayout.razor b/src/Connected.Components.Showcase.Runner/MainLayout.razor index 8dd7695..f70f81e 100644 --- a/src/Connected.Components.Showcase.Runner/MainLayout.razor +++ b/src/Connected.Components.Showcase.Runner/MainLayout.razor @@ -1,4 +1,5 @@ @inherits LayoutComponentBase +@namespace Connected.Components.Showcase.Runner diff --git a/src/Connected.Components/Components/ModalDialog.razor b/src/Connected.Components/Components/ModalDialog.razor index 74bf5df..41be3cf 100644 --- a/src/Connected.Components/Components/ModalDialog.razor +++ b/src/Connected.Components/Components/ModalDialog.razor @@ -1,25 +1,25 @@ @using Connected.Models.Modal; @if (IsVisible) { -