From ff3a36eb6434619f02002d4090cc9dfc69d2ae24 Mon Sep 17 00:00:00 2001 From: markosteger Date: Mon, 27 Feb 2023 12:11:37 +0100 Subject: [PATCH] ModalDialog - added ModalButton class, ModalButtonType enum, relocation of classes outside the Services folder to Models/Modal --- .../Components/ModalDialog.razor | 11 +-- .../Components/ModalDialog.razor.cs | 68 +++++++++---------- .../Enums/ModalButtonType.cs | 13 ++++ .../Models/Modal/ModalButton.cs | 37 ++++++++++ .../Models/Modal/ModalEvent.cs | 12 ++++ .../Models/Modal/ModalOptions.cs | 10 +++ .../Services/Modal/ModalDialogService.cs | 22 +++--- 7 files changed, 126 insertions(+), 47 deletions(-) create mode 100644 src/Connected.Components/Enums/ModalButtonType.cs create mode 100644 src/Connected.Components/Models/Modal/ModalButton.cs create mode 100644 src/Connected.Components/Models/Modal/ModalEvent.cs create mode 100644 src/Connected.Components/Models/Modal/ModalOptions.cs diff --git a/src/Connected.Components/Components/ModalDialog.razor b/src/Connected.Components/Components/ModalDialog.razor index 8e84da8..7215aed 100644 --- a/src/Connected.Components/Components/ModalDialog.razor +++ b/src/Connected.Components/Components/ModalDialog.razor @@ -1,7 +1,8 @@ -@if (IsVisible) +@using Connected.Models.Modal; +@if (IsVisible) {