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 class AppId
|
||||||
{
|
{
|
||||||
public string Version { get; set; } = "0.2.9";
|
public string Version { get; set; } = "v0.2.10";
|
||||||
public string Name { get; set; } = "Wonky Online";
|
public string Name { get; set; } = "Wonky";
|
||||||
|
|
||||||
public bool IsBeta { get; set; } = false;
|
public bool IsBeta { get; set; } = false;
|
||||||
}
|
}
|
|
@ -73,6 +73,11 @@ public partial class CompanyUpdate : IDisposable
|
||||||
}
|
}
|
||||||
private async Task GetInfoFromVat(string vatNumber)
|
private async Task GetInfoFromVat(string vatNumber)
|
||||||
{
|
{
|
||||||
|
if (string.IsNullOrWhiteSpace(vatNumber))
|
||||||
|
{
|
||||||
|
ToastService.ShowError($"CVR nummer mangler.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
var result = await VirkRegistryService
|
var result = await VirkRegistryService
|
||||||
.QueryVirkRegistry(
|
.QueryVirkRegistry(
|
||||||
new VirkParams
|
new VirkParams
|
||||||
|
|
|
@ -34,7 +34,8 @@ public partial class CompanyView : IDisposable
|
||||||
private CompanyDto CompanyDto { get; set; } = new ();
|
private CompanyDto CompanyDto { get; set; } = new ();
|
||||||
private VirkRegInfo VirkRegInfo { get; set; } = new();
|
private VirkRegInfo VirkRegInfo { get; set; } = new();
|
||||||
private string VisitState { get; set; } = "the-ugly";
|
private string VisitState { get; set; } = "the-ugly";
|
||||||
|
|
||||||
|
|
||||||
protected override async Task OnInitializedAsync()
|
protected override async Task OnInitializedAsync()
|
||||||
{
|
{
|
||||||
Interceptor.RegisterEvent();
|
Interceptor.RegisterEvent();
|
||||||
|
@ -56,8 +57,6 @@ public partial class CompanyView : IDisposable
|
||||||
{
|
{
|
||||||
VisitState = DateTime.Now >= theBad ? "the-bad" : "the-good";
|
VisitState = DateTime.Now >= theBad ? "the-bad" : "the-good";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -10,12 +10,14 @@
|
||||||
.state {
|
.state {
|
||||||
width: 24px;
|
width: 24px;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
|
min-width: 24px;
|
||||||
|
min-height: 24px;
|
||||||
}
|
}
|
||||||
.the-good {
|
.the-good {
|
||||||
background-color: green;
|
background-color: green;
|
||||||
}
|
}
|
||||||
.the-bad {
|
.the-bad {
|
||||||
background-color: yellow;
|
background-color: orange;
|
||||||
}
|
}
|
||||||
.the-ugly {
|
.the-ugly {
|
||||||
background-color: red;
|
background-color: red;
|
||||||
|
|
Loading…
Reference in a new issue