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 @@
-
+