wip
This commit is contained in:
parent
72e818bd04
commit
d66e65bc50
4 changed files with 12 additions and 6 deletions
|
@ -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;
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -35,6 +35,7 @@ public partial class CompanyView : IDisposable
|
|||
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>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue