chore
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
@page "/area/list/{countryId:long}"
|
||||
@page "/area/list/{countryId:long}/{stateProvinceId:long}"
|
||||
@page "/{locale}/area/list/{countryId:long}"
|
||||
@page "/{locale}/area/list/{countryId:long}/{stateProvinceId:long}"
|
||||
@inject ILogger<CountryList> Logger
|
||||
@attribute [Authorize]
|
||||
|
||||
@@ -92,6 +94,8 @@
|
||||
public string Locale { get; set; } = string.Empty;
|
||||
[Parameter]
|
||||
public long CountryId { get; set; }
|
||||
[Parameter]
|
||||
public long StateProvinceId { get; set; }
|
||||
|
||||
[SupplyParameterFromQuery]
|
||||
int? Page { get; set; }
|
||||
@@ -202,7 +206,15 @@
|
||||
|
||||
void HandleAddNew()
|
||||
{
|
||||
Navigation.NavigateTo($"/area/create/{CountryId}");
|
||||
if (StateProvinceId > 0)
|
||||
{
|
||||
Navigation.NavigateTo($"/area/create/{CountryId}/{StateProvinceId}");
|
||||
}
|
||||
else
|
||||
{
|
||||
Navigation.NavigateTo($"/area/create/{CountryId}");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user