OrdersHomePage:
- Inserita gestione check qty >=0 x doors
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>WebDoorCreator - Egalware</i>
|
||||
<h4>Version: 0.9.2306.1312</h4>
|
||||
<h4>Version: 0.9.2306.1317</h4>
|
||||
<br /> Release note:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
0.9.2306.1312
|
||||
0.9.2306.1317
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>0.9.2306.1312</version>
|
||||
<version>0.9.2306.1317</version>
|
||||
<url>http://nexus.steamware.net/repository/SWS/WDC/stable/WDC.UI.zip</url>
|
||||
<changelog>http://nexus.steamware.net/repository/SWS/WDC/stable/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
{
|
||||
<button class="btn btn-outline-danger" type="button" @onclick="()=>addOrRemoveOneDoorNumber(false)">-1</button>
|
||||
}
|
||||
<input type="number" @bind="@CurrDoor.Quantity" class="form-control text-center">
|
||||
<input type="number" @bind="@DoorQty" class="form-control text-center">
|
||||
@if (CurrDoorClone.Quantity == CurrDoor.Quantity)
|
||||
{
|
||||
<button class="btn btn-outline-success" type="button" @onclick="()=>addOrRemoveOneDoorNumber(true)">+1</button>
|
||||
|
||||
@@ -11,8 +11,8 @@ namespace WebDoorCreator.UI.Components.DoorMan
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
public DoorModel CurrDoor { get; set; } = new DoorModel();
|
||||
public DoorModel CurrDoorClone { get; set; } = new DoorModel();
|
||||
protected DoorModel CurrDoor { get; set; } = new DoorModel();
|
||||
protected DoorModel CurrDoorClone { get; set; } = new DoorModel();
|
||||
|
||||
[Parameter]
|
||||
public int CurrDoorId { get; set; } = 0;
|
||||
@@ -33,6 +33,18 @@ namespace WebDoorCreator.UI.Components.DoorMan
|
||||
[Parameter]
|
||||
public string UserName { get; set; } = "";
|
||||
|
||||
protected int DoorQty
|
||||
{
|
||||
get => CurrDoor.Quantity;
|
||||
set
|
||||
{
|
||||
if (value >= 0)
|
||||
{
|
||||
CurrDoor.Quantity = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Protected Fields
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<Version>0.9.2306.1312</Version>
|
||||
<Version>0.9.2306.1317</Version>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<UserSecretsId>aspnet-WebDoorCreator.UI-dfe95fed-1398-4144-bd43-8b3a765d6608</UserSecretsId>
|
||||
</PropertyGroup>
|
||||
|
||||
Reference in New Issue
Block a user