diff --git a/SteUp.Shared/Components/Pages/IspezionePage.razor b/SteUp.Shared/Components/Pages/IspezionePage.razor
index 4a688e0..6b94865 100644
--- a/SteUp.Shared/Components/Pages/IspezionePage.razor
+++ b/SteUp.Shared/Components/Pages/IspezionePage.razor
@@ -163,8 +163,6 @@
}
}
- SteupDataService.InspectionPageState.Ispezione.Stato = StatusEnum.Completata;
-
await IntegrySteupService.CompleteInspection(ispezione.ActivityId!);
await IspezioniService.UpdateStatoIspezioneAsync(
ispezione.CodMdep,
@@ -172,6 +170,8 @@
ispezione.Rilevatore,
StatusEnum.Completata
);
+
+ SteupDataService.InspectionPageState.Ispezione.Stato = StatusEnum.Completata;
await InvokeAsync(() =>
{
diff --git a/SteUp.Shared/Components/SingleElements/Card/SchedaCard.razor b/SteUp.Shared/Components/SingleElements/Card/SchedaCard.razor
index 8523673..bf590fe 100644
--- a/SteUp.Shared/Components/SingleElements/Card/SchedaCard.razor
+++ b/SteUp.Shared/Components/SingleElements/Card/SchedaCard.razor
@@ -42,27 +42,18 @@
}
else
{
-
- Modifica
-
-
- Cancella
-
+
+
}
}
else
{
-
- Visualizza
-
-
-
- Esporta immagini
-
+
+
}
diff --git a/SteUp.Shared/Components/SingleElements/Modal/ExceptionModal/ModalError.razor b/SteUp.Shared/Components/SingleElements/Modal/ExceptionModal/ModalError.razor
index c6dffb3..fa5d9ab 100644
--- a/SteUp.Shared/Components/SingleElements/Modal/ExceptionModal/ModalError.razor
+++ b/SteUp.Shared/Components/SingleElements/Modal/ExceptionModal/ModalError.razor
@@ -3,14 +3,14 @@
@if (IsWarning)
{
}
else
{
}
diff --git a/SteUp.Shared/Components/SingleElements/Modal/ModalFormScheda.razor b/SteUp.Shared/Components/SingleElements/Modal/ModalFormScheda.razor
index c25d495..667daa1 100644
--- a/SteUp.Shared/Components/SingleElements/Modal/ModalFormScheda.razor
+++ b/SteUp.Shared/Components/SingleElements/Modal/ModalFormScheda.razor
@@ -107,12 +107,15 @@
}
-
-
-
-
+ @if (!ReadOnly)
+ {
+
+
+
+
+ }
@if (!Scheda.Articoli.IsNullOrEmpty())
{
diff --git a/SteUp.Shared/Core/Services/IntegrySteupService.cs b/SteUp.Shared/Core/Services/IntegrySteupService.cs
index e9ffae2..ae0b668 100644
--- a/SteUp.Shared/Core/Services/IntegrySteupService.cs
+++ b/SteUp.Shared/Core/Services/IntegrySteupService.cs
@@ -48,10 +48,11 @@ public class IntegrySteupService(IIntegryApiRestClient integryApiRestClient) : I
public Task CompleteInspection(string activityId) =>
integryApiRestClient.AuthorizedPost