From 20abd5708ddd82667d010efac85b44acc764c420 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 4 Feb 2022 23:32:43 +0000 Subject: [PATCH 1/3] Bump Blazored.LocalStorage from 4.1.5 to 4.2.0 Bumps [Blazored.LocalStorage](https://github.com/Blazored/LocalStorage) from 4.1.5 to 4.2.0. - [Release notes](https://github.com/Blazored/LocalStorage/releases) - [Commits](https://github.com/Blazored/LocalStorage/compare/v4.1.5...v4.2.0) --- updated-dependencies: - dependency-name: Blazored.LocalStorage dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- src/Client.Infrastructure/Client.Infrastructure.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.Infrastructure/Client.Infrastructure.csproj b/src/Client.Infrastructure/Client.Infrastructure.csproj index 75dbcd28..1906d849 100644 --- a/src/Client.Infrastructure/Client.Infrastructure.csproj +++ b/src/Client.Infrastructure/Client.Infrastructure.csproj @@ -7,7 +7,7 @@ - + From 4f427484ebf35621d9df8aa85699eda0c518dcee Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 4 Feb 2022 23:32:46 +0000 Subject: [PATCH 2/3] Bump MudBlazor from 6.0.5 to 6.0.6 Bumps [MudBlazor](https://github.com/MudBlazor/MudBlazor) from 6.0.5 to 6.0.6. - [Release notes](https://github.com/MudBlazor/MudBlazor/releases) - [Changelog](https://github.com/MudBlazor/MudBlazor/blob/dev/CHANGELOG.md) - [Commits](https://github.com/MudBlazor/MudBlazor/compare/v6.0.5...v6.0.6) --- updated-dependencies: - dependency-name: MudBlazor dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- src/Client.Infrastructure/Client.Infrastructure.csproj | 2 +- src/Client/Client.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Client.Infrastructure/Client.Infrastructure.csproj b/src/Client.Infrastructure/Client.Infrastructure.csproj index 75dbcd28..6194dd57 100644 --- a/src/Client.Infrastructure/Client.Infrastructure.csproj +++ b/src/Client.Infrastructure/Client.Infrastructure.csproj @@ -17,7 +17,7 @@ - + all diff --git a/src/Client/Client.csproj b/src/Client/Client.csproj index 255f00fa..742ea94b 100644 --- a/src/Client/Client.csproj +++ b/src/Client/Client.csproj @@ -13,7 +13,7 @@ - + From e3104e788e649f5fcd12846895ef01570243dce7 Mon Sep 17 00:00:00 2001 From: xlogex <27079402+xlogex@users.noreply.github.com> Date: Wed, 9 Feb 2022 15:53:04 +0100 Subject: [PATCH 3/3] hide id --- src/Client/Components/EntityTable/AddEditModal.razor | 2 +- src/Client/Components/EntityTable/AddEditModal.razor.cs | 2 ++ src/Client/Components/EntityTable/EntityTable.razor.cs | 5 ++++- src/Client/Pages/Catalog/Brands.razor | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Client/Components/EntityTable/AddEditModal.razor b/src/Client/Components/EntityTable/AddEditModal.razor index fac43f06..c7ac6537 100644 --- a/src/Client/Components/EntityTable/AddEditModal.razor +++ b/src/Client/Components/EntityTable/AddEditModal.razor @@ -24,7 +24,7 @@ - @if (!IsCreate) + @if (!IsCreate && !HideId) { diff --git a/src/Client/Components/EntityTable/AddEditModal.razor.cs b/src/Client/Components/EntityTable/AddEditModal.razor.cs index f2df9472..2838aa3b 100644 --- a/src/Client/Components/EntityTable/AddEditModal.razor.cs +++ b/src/Client/Components/EntityTable/AddEditModal.razor.cs @@ -31,6 +31,8 @@ public partial class AddEditModal : IAddEditModal private CustomValidation? _customValidation; public bool IsCreate => Id is null; + [Parameter] + public bool HideId { get; set; } public void ForceRender() => StateHasChanged(); diff --git a/src/Client/Components/EntityTable/EntityTable.razor.cs b/src/Client/Components/EntityTable/EntityTable.razor.cs index 2cf159dd..18512a4f 100644 --- a/src/Client/Components/EntityTable/EntityTable.razor.cs +++ b/src/Client/Components/EntityTable/EntityTable.razor.cs @@ -37,6 +37,8 @@ public partial class EntityTable [Parameter] public RenderFragment? EditFormContent { get; set; } + [Parameter] + public bool HideId { get; set; } [CascadingParameter] protected Task AuthState { get; set; } = default!; @@ -185,7 +187,8 @@ private async Task InvokeModal(TEntity? entity = default) { { nameof(AddEditModal.EditFormContent), EditFormContent }, { nameof(AddEditModal.OnInitializedFunc), Context.EditFormInitializedFunc }, - { nameof(AddEditModal.EntityName), Context.EntityName } + { nameof(AddEditModal.EntityName), Context.EntityName }, + { nameof(AddEditModal.HideId), HideId} }; TRequest requestModel; diff --git a/src/Client/Pages/Catalog/Brands.razor b/src/Client/Pages/Catalog/Brands.razor index 78b3618d..a36d427a 100644 --- a/src/Client/Pages/Catalog/Brands.razor +++ b/src/Client/Pages/Catalog/Brands.razor @@ -6,7 +6,7 @@ - +