diff --git a/Wonky.Client/Components/CompanyTable.razor b/Wonky.Client/Components/CompanyTable.razor
index 035b252d..05f11496 100644
--- a/Wonky.Client/Components/CompanyTable.razor
+++ b/Wonky.Client/Components/CompanyTable.razor
@@ -23,7 +23,7 @@
@foreach (var company in Companies)
{
- |
+ |
@company.Name |
@company.Account |
@company.City |
diff --git a/Wonky.Client/Pages/CompanyUpdate.razor b/Wonky.Client/Pages/CompanyUpdate.razor
index c2c9fa5c..827dd29f 100644
--- a/Wonky.Client/Pages/CompanyUpdate.razor
+++ b/Wonky.Client/Pages/CompanyUpdate.razor
@@ -25,7 +25,7 @@
{
Næste besøg |
- |
+ |
@CompanyDto.NextVisit |
diff --git a/Wonky.Client/Pages/CompanyView.razor.cs b/Wonky.Client/Pages/CompanyView.razor.cs
index 1f376c37..2ce429e6 100644
--- a/Wonky.Client/Pages/CompanyView.razor.cs
+++ b/Wonky.Client/Pages/CompanyView.razor.cs
@@ -33,6 +33,7 @@ public partial class CompanyView : IDisposable
[Parameter] public string CompanyId { get; set; } = "";
private CompanyDto CompanyDto { get; set; } = new ();
private VirkRegInfo VirkRegInfo { get; set; } = new();
+ private string VisitState { get; set; } = "the-ugly";
protected override async Task OnInitializedAsync()
{
@@ -49,16 +50,16 @@ public partial class CompanyView : IDisposable
CompanyDto = await CompanyRepo.GetCompanyById(CompanyId);
}
}
- }
-
- private string VisitState(string nextVisit)
- {
- var theUgly = DateTime.Parse(nextVisit);
+ var theUgly = DateTime.Parse(CompanyDto.NextVisit);
var theBad = theUgly.AddDays(-14);
- if (DateTime.Now >= theUgly)
- return "the-ugly";
- return DateTime.Now >= theBad ? "the-bad" : "the-good";
+ if (DateTime.Now <= theUgly)
+ {
+ VisitState = DateTime.Now >= theBad ? "the-bad" : "the-good";
+ }
+
+
}
+
///
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
///
diff --git a/Wonky.Client/Shared/NavMenu.razor b/Wonky.Client/Shared/NavMenu.razor
index c5c689a8..e20155c4 100644
--- a/Wonky.Client/Shared/NavMenu.razor
+++ b/Wonky.Client/Shared/NavMenu.razor
@@ -50,7 +50,7 @@
- Ordrekladde
+ WIP-ordre