Fix hide componenti in AddRA x FAstRec
This commit is contained in:
@@ -3,16 +3,23 @@
|
||||
@inject GpwDataService GDataServ
|
||||
@inject MessageService AppMServ
|
||||
|
||||
<button @onclick="() => AddNew()" class="px-1 text-center btn btn-lg btn-outline-success">
|
||||
@if (canPaste)
|
||||
{
|
||||
<i class="fas fa-clipboard"></i>
|
||||
}
|
||||
else
|
||||
{
|
||||
<i class="fas fa-plus-circle"></i>
|
||||
}
|
||||
</button>
|
||||
@if (EnableAction)
|
||||
{
|
||||
<button @onclick="() => AddNew()" class="px-1 text-center btn btn-lg btn-outline-success">
|
||||
@if (canPaste)
|
||||
{
|
||||
<i class="fas fa-clipboard"></i>
|
||||
}
|
||||
else
|
||||
{
|
||||
<i class="fas fa-plus-circle"></i>
|
||||
}
|
||||
</button>
|
||||
}
|
||||
else
|
||||
{
|
||||
<span> </span>
|
||||
}
|
||||
|
||||
@code {
|
||||
|
||||
@@ -26,6 +33,9 @@
|
||||
[Parameter]
|
||||
public EventCallback<RegAttivitaModel> NewItemCreated { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public bool EnableAction { get; set; } = true;
|
||||
|
||||
protected bool canPaste
|
||||
{
|
||||
get => AppMServ.clonedRA != null;
|
||||
@@ -37,7 +47,7 @@
|
||||
protected async void AddNew()
|
||||
{
|
||||
RegAttivitaModel newItem = new RegAttivitaModel();
|
||||
TimeSpan durata = new TimeSpan(1,0,0);
|
||||
TimeSpan durata = new TimeSpan(1, 0, 0);
|
||||
// se ho un record clonato parto da quello...
|
||||
if (AppMServ.clonedRA != null)
|
||||
{
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
<div class="d-flex justify-content-between text-center">
|
||||
@if (@noData)
|
||||
{
|
||||
<AddRA NewItemCreated="ReportSelected" InizioPer="@FirstTimb" IdxDip="@IdxDipSel"></AddRA>
|
||||
<AddRA NewItemCreated="ReportSelected" InizioPer="@FirstTimb" IdxDip="@IdxDipSel" EnableAction="@EnableActionMenu"></AddRA>
|
||||
}
|
||||
else if (@DayDTO != null && @DayDTO.ListRA != null)
|
||||
{
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
else
|
||||
{
|
||||
<div class="px-1 small textTrim">
|
||||
<AddRA IdxDip="@IdxDipSel" NewItemCreated="ReportSelect" InizioPer="@CurrData.Inizio"></AddRA>
|
||||
<AddRA IdxDip="@IdxDipSel" NewItemCreated="ReportSelect" InizioPer="@CurrData.Inizio" EnableAction="@EnableActionMenu"></AddRA>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Version>3.0.2201.1719</Version>
|
||||
<Version>3.0.2201.1808</Version>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>GPW - Gestione Presenze Web</i>
|
||||
<h4>Versione: 3.0.2201.1719</h4>
|
||||
<h4>Versione: 3.0.2201.1808</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
3.0.2201.1719
|
||||
3.0.2201.1808
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>3.0.2201.1719</version>
|
||||
<version>3.0.2201.1808</version>
|
||||
<url>http://nexus.steamware.net/repository/SWS/GWMS/stable/0/GWMS.UI.zip</url>
|
||||
<changelog>http://nexus.steamware.net/repository/SWS/GWMS/stable/0/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
Reference in New Issue
Block a user