From 4952893d677db452fd8b0843b4c91885895b3a6f Mon Sep 17 00:00:00 2001 From: George Drak Date: Wed, 19 Jan 2022 13:55:29 +0500 Subject: [PATCH] feat(mudblazor): use new MudValidationMessage Refs: BLOCKLY-T-2 --- .../Forms/Blocks/MudFilesBlockForm.razor | 2 +- .../Forms/Blocks/MudGalleryBlockForm.razor | 2 +- .../Forms/Blocks/MudQuoteBlockForm.razor | 2 +- .../Forms/Blocks/MudTextBlockForm.razor | 2 +- .../Forms/MudBlockValidationMessage.razor | 19 ------------------- 5 files changed, 4 insertions(+), 23 deletions(-) delete mode 100644 src/Sitko.Blockly.MudBlazor/Forms/MudBlockValidationMessage.razor diff --git a/src/Sitko.Blockly.MudBlazor/Forms/Blocks/MudFilesBlockForm.razor b/src/Sitko.Blockly.MudBlazor/Forms/Blocks/MudFilesBlockForm.razor index 705cf29..b8f32f6 100644 --- a/src/Sitko.Blockly.MudBlazor/Forms/Blocks/MudFilesBlockForm.razor +++ b/src/Sitko.Blockly.MudBlazor/Forms/Blocks/MudFilesBlockForm.razor @@ -21,7 +21,7 @@ LeftText="@LocalizationProvider["Move left"]" RightText="@LocalizationProvider["Move right"]"> - + } else diff --git a/src/Sitko.Blockly.MudBlazor/Forms/Blocks/MudGalleryBlockForm.razor b/src/Sitko.Blockly.MudBlazor/Forms/Blocks/MudGalleryBlockForm.razor index 3d626c0..87a9dd6 100644 --- a/src/Sitko.Blockly.MudBlazor/Forms/Blocks/MudGalleryBlockForm.razor +++ b/src/Sitko.Blockly.MudBlazor/Forms/Blocks/MudGalleryBlockForm.razor @@ -21,7 +21,7 @@ LeftText="@LocalizationProvider["Move left"]" RightText="@LocalizationProvider["Move right"]"> - + } else diff --git a/src/Sitko.Blockly.MudBlazor/Forms/Blocks/MudQuoteBlockForm.razor b/src/Sitko.Blockly.MudBlazor/Forms/Blocks/MudQuoteBlockForm.razor index 00988d4..28149c0 100644 --- a/src/Sitko.Blockly.MudBlazor/Forms/Blocks/MudQuoteBlockForm.razor +++ b/src/Sitko.Blockly.MudBlazor/Forms/Blocks/MudQuoteBlockForm.razor @@ -2,7 +2,7 @@ - + diff --git a/src/Sitko.Blockly.MudBlazor/Forms/Blocks/MudTextBlockForm.razor b/src/Sitko.Blockly.MudBlazor/Forms/Blocks/MudTextBlockForm.razor index 0409249..41e6a98 100644 --- a/src/Sitko.Blockly.MudBlazor/Forms/Blocks/MudTextBlockForm.razor +++ b/src/Sitko.Blockly.MudBlazor/Forms/Blocks/MudTextBlockForm.razor @@ -1,5 +1,5 @@ @inherits TextBlockForm - + diff --git a/src/Sitko.Blockly.MudBlazor/Forms/MudBlockValidationMessage.razor b/src/Sitko.Blockly.MudBlazor/Forms/MudBlockValidationMessage.razor deleted file mode 100644 index 1b2c0f8..0000000 --- a/src/Sitko.Blockly.MudBlazor/Forms/MudBlockValidationMessage.razor +++ /dev/null @@ -1,19 +0,0 @@ -@using Microsoft.AspNetCore.Components.Forms -@foreach (var message in CurrentEditContext.GetValidationMessages(BlockForm.FieldIdentifier).Distinct().ToArray()) -{ -
-
- @message -
-
-} - -@code -{ - [EditorRequired] - [Parameter] - public BlockForm BlockForm { get; set; } = null!; - - [CascadingParameter] - public EditContext CurrentEditContext { get; set; } = null!; -}