From 0bf6ec94ee8f5fdacbdc342932a752a6537614b6 Mon Sep 17 00:00:00 2001 From: Frede Hundewadt Date: Sat, 15 Oct 2022 10:02:48 +0200 Subject: [PATCH] button size on company base data page --- Wonky.Client/Components/ActivityButton.razor | 5 +++-- Wonky.Client/Pages/CrmCompanyViewPage.razor | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Wonky.Client/Components/ActivityButton.razor b/Wonky.Client/Components/ActivityButton.razor index f7a3f101..b6c6dbe1 100644 --- a/Wonky.Client/Components/ActivityButton.razor +++ b/Wonky.Client/Components/ActivityButton.razor @@ -17,7 +17,7 @@ @if (Enabled == 1) { - @ButtonText + @ButtonText } else { @@ -33,7 +33,8 @@ else protected override void OnParametersSet() { - ActionLink = ActionLink.Replace("$ID$", CompanyId); + if (!string.IsNullOrWhiteSpace(CompanyId)) + ActionLink = ActionLink.Replace("$ID$", CompanyId); } } \ No newline at end of file diff --git a/Wonky.Client/Pages/CrmCompanyViewPage.razor b/Wonky.Client/Pages/CrmCompanyViewPage.razor index db2bc4ad..457b1fd1 100644 --- a/Wonky.Client/Pages/CrmCompanyViewPage.razor +++ b/Wonky.Client/Pages/CrmCompanyViewPage.razor @@ -208,7 +208,7 @@
Produktkøb
-
+