This commit is contained in:
Frede Hundewadt 2022-03-22 10:50:44 +01:00
parent 72e818bd04
commit d66e65bc50
4 changed files with 12 additions and 6 deletions

View file

@ -2,8 +2,8 @@ namespace Wonky.Client;
public class AppId
{
public string Version { get; set; } = "0.2.9";
public string Name { get; set; } = "Wonky Online";
public string Version { get; set; } = "v0.2.10";
public string Name { get; set; } = "Wonky";
public bool IsBeta { get; set; } = false;
}

View file

@ -73,6 +73,11 @@ public partial class CompanyUpdate : IDisposable
}
private async Task GetInfoFromVat(string vatNumber)
{
if (string.IsNullOrWhiteSpace(vatNumber))
{
ToastService.ShowError($"CVR nummer mangler.");
return;
}
var result = await VirkRegistryService
.QueryVirkRegistry(
new VirkParams

View file

@ -34,7 +34,8 @@ public partial class CompanyView : IDisposable
private CompanyDto CompanyDto { get; set; } = new ();
private VirkRegInfo VirkRegInfo { get; set; } = new();
private string VisitState { get; set; } = "the-ugly";
protected override async Task OnInitializedAsync()
{
Interceptor.RegisterEvent();
@ -56,8 +57,6 @@ public partial class CompanyView : IDisposable
{
VisitState = DateTime.Now >= theBad ? "the-bad" : "the-good";
}
}
/// <summary>

View file

@ -10,12 +10,14 @@
.state {
width: 24px;
height: 24px;
min-width: 24px;
min-height: 24px;
}
.the-good {
background-color: green;
}
.the-bad {
background-color: yellow;
background-color: orange;
}
.the-ugly {
background-color: red;