wip - end of day
This commit is contained in:
parent
a3a434991e
commit
c2a9fa0210
2 changed files with 5 additions and 6 deletions
|
@ -31,7 +31,7 @@ namespace Wonky.Client.HttpInterceptors
|
|||
private readonly NavigationManager _navigation;
|
||||
private readonly IToastService _toast;
|
||||
private readonly RefreshTokenService _refreshTokenService;
|
||||
private ILogger<HttpInterceptorService> _logger;
|
||||
private readonly ILogger<HttpInterceptorService> _logger;
|
||||
private readonly ILocalStorageService _storage;
|
||||
private readonly IAuthenticationService _authenticationService;
|
||||
|
||||
|
@ -86,7 +86,7 @@ namespace Wonky.Client.HttpInterceptors
|
|||
if (e.Response == null || e.Response.IsSuccessStatusCode)
|
||||
return;
|
||||
|
||||
var message = $"En fejl er opstået \n {e.Response.Content}";
|
||||
var message = $"En fejl er opstået \n {e.Response.Content }";
|
||||
var currDoc = _navigation.ToBaseRelativePath(_navigation.Uri);
|
||||
if (currDoc.Contains("login/"))
|
||||
currDoc = "";
|
||||
|
@ -103,8 +103,7 @@ namespace Wonky.Client.HttpInterceptors
|
|||
case HttpStatusCode.Unauthorized:
|
||||
_logger.LogDebug("Unauthorized <= {}", currDoc);
|
||||
_logger.LogDebug("{}", message);
|
||||
|
||||
//_authenticationService.Logout();
|
||||
_authenticationService.Logout();
|
||||
_navigation.NavigateTo($"/login/{currDoc}");
|
||||
_toast.ShowInfo(message);
|
||||
break;
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
{
|
||||
"appInfo": {
|
||||
"name": "Wonky Online",
|
||||
"version": "0.100.1",
|
||||
"version": "0.101.x",
|
||||
"rc": true,
|
||||
"sandBox": false,
|
||||
"image": "grumpy-coder.png"
|
||||
},
|
||||
"apiConfig": {
|
||||
"baseUrl": "https://eta.innotec.dk",
|
||||
"baseUrl": "https://dev.innotec.dk",
|
||||
"catalog": "api/v2/catalog/country",
|
||||
"crmCustomers": "api/v2/crm/companies",
|
||||
"crmInventoryExt": "history/inventory",
|
||||
|
|
Loading…
Reference in a new issue