diff --git a/MP.Land/Components/UserCard.razor b/MP.Land/Components/UserCard.razor
index 8f3ef9f5..e758614f 100644
--- a/MP.Land/Components/UserCard.razor
+++ b/MP.Land/Components/UserCard.razor
@@ -2,14 +2,19 @@
@inject IJSRuntime JSRuntime
-
-
-
@@ -35,15 +40,16 @@
[Parameter]
public AnagraficaOperatori CurrItem { get; set; }
- [Parameter]
- public string CardMessage { get; set; }
-
protected override async Task OnAfterRenderAsync(bool firstRender)
{
await JSRuntime.InvokeVoidAsync("displayQr", $"qrCodeImg_{CurrItem.MatrOpr}", rawCode);
}
- protected string BaseUrl = "http://IIS01/";
+ [Parameter]
+ public string BaseUrl { get; set; }
+
+ [Parameter]
+ public string Environment { get; set; }
protected string rawCode
{
diff --git a/MP.Land/Pages/UserQr.razor b/MP.Land/Pages/UserQr.razor
index 117e491a..caf322d9 100644
--- a/MP.Land/Pages/UserQr.razor
+++ b/MP.Land/Pages/UserQr.razor
@@ -19,7 +19,7 @@
@foreach (var item in ListRecords)
{
-
+
}
diff --git a/MP.Land/Pages/UserQr.razor.cs b/MP.Land/Pages/UserQr.razor.cs
index 1ed8ab66..6e3041c7 100644
--- a/MP.Land/Pages/UserQr.razor.cs
+++ b/MP.Land/Pages/UserQr.razor.cs
@@ -38,24 +38,23 @@ namespace MP.Land.Pages
[Inject]
protected MessageService AppMService { get; set; }
+ protected string BaseUrl
+ {
+ get => Configuration["BaseUrl"];
+ }
+
[Inject]
protected AppAuthService DataService { get; set; }
+ protected string Environment
+ {
+ get => Configuration["Environment"];
+ }
+
#endregion Protected Properties
#region Protected Methods
- protected bool authOk(UpdMan currItem)
- {
- bool answ = !string.IsNullOrEmpty(currItem.LicenseKey) && Convert.ToBoolean(currItem.IsAuth);
- return answ;
- }
-
- protected string fullUrl(string relUrl)
- {
- return $"{Configuration["BaseUrl"]}{relUrl}";
- }
-
protected override void OnInitialized()
{
AppMService.ShowSearch = false;
diff --git a/MP.Land/appsettings.json b/MP.Land/appsettings.json
index 50cb7a42..731901a3 100644
--- a/MP.Land/appsettings.json
+++ b/MP.Land/appsettings.json
@@ -15,6 +15,7 @@
},
"AllowedHosts": "*",
"BaseUrl": "https://localhost:44309/",
+ "Environment": "Steam DEV",
"ConnectionStrings": {
"DefaultConnection": "Server=SQL2016DEV;Database=MoonPro;Trusted_Connection=True;MultipleActiveResultSets=true",
"MP.Land": "Server=SQL2016DEV;Database=MoonPro;User ID=sa;Password=keyhammer16;integrated security=False;MultipleActiveResultSets=True;App=MP.Land;",