malacka fix
This commit is contained in:
parent
fb2d7fbe59
commit
04b5556434
|
|
@ -8,6 +8,7 @@ public static class FruitBankConstClient
|
||||||
public static string DefaultLocale = "en-US";
|
public static string DefaultLocale = "en-US";
|
||||||
|
|
||||||
public static string BaseUrl = "https://localhost:59579"; //FrutiBank nop
|
public static string BaseUrl = "https://localhost:59579"; //FrutiBank nop
|
||||||
|
//public static string BaseUrl = "https://shop.fruitbank.hu"; //FrutiBank nop
|
||||||
//public static string BaseUrl = "http://10.0.2.2:59579"; //FrutiBank (android) nop
|
//public static string BaseUrl = "http://10.0.2.2:59579"; //FrutiBank (android) nop
|
||||||
//public static string BaseUrl = "https://localhost:7144"; //HybridApp
|
//public static string BaseUrl = "https://localhost:7144"; //HybridApp
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,11 @@ public partial class MainLayout : LayoutComponentBase
|
||||||
|
|
||||||
protected override void OnInitialized()
|
protected override void OnInitialized()
|
||||||
{
|
{
|
||||||
if (!LoggedInModel.IsLoggedIn) NavManager.NavigateTo("/Login");
|
var loginUri = NavManager.ToAbsoluteUri("/Login").ToString();
|
||||||
|
if (!LoggedInModel.IsLoggedIn && NavManager.Uri != loginUri)
|
||||||
|
{
|
||||||
|
NavManager.NavigateTo("/Login");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnLogoutClick()
|
private void OnLogoutClick()
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
"version": 1,
|
||||||
|
"isRoot": true,
|
||||||
|
"tools": {
|
||||||
|
"dotnet-ef": {
|
||||||
|
"version": "9.0.10",
|
||||||
|
"commands": [
|
||||||
|
"dotnet-ef"
|
||||||
|
],
|
||||||
|
"rollForward": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue