From 8595a18d0c8a6f76b89269fb06d55f9b475c9e94 Mon Sep 17 00:00:00 2001 From: Andre Beging Date: Tue, 1 Apr 2025 09:16:50 +0200 Subject: [PATCH] Remove unused `PdfPass` interaction type. The `PdfPass` interaction type and its associated logic were removed as it is no longer needed. This simplifies the codebase by eliminating redundant entries and ensures clarity in interaction types. --- FoodsharingSiegen.Contracts/Entity/Enums.cs | 5 ----- FoodsharingSiegen.Server/Dialogs/InteractionDialog.razor.cs | 2 -- FoodsharingSiegen.Shared/Helper/TermHelper.cs | 1 - 3 files changed, 8 deletions(-) diff --git a/FoodsharingSiegen.Contracts/Entity/Enums.cs b/FoodsharingSiegen.Contracts/Entity/Enums.cs index 057d277..2f1da89 100644 --- a/FoodsharingSiegen.Contracts/Entity/Enums.cs +++ b/FoodsharingSiegen.Contracts/Entity/Enums.cs @@ -198,11 +198,6 @@ namespace FoodsharingSiegen.Contracts.Entity /// PrintPass = 40, - /// - /// The pdf pass interaction type - /// - PdfPass = 50, - /// /// The verify interaction type /// diff --git a/FoodsharingSiegen.Server/Dialogs/InteractionDialog.razor.cs b/FoodsharingSiegen.Server/Dialogs/InteractionDialog.razor.cs index e157ad0..4294932 100644 --- a/FoodsharingSiegen.Server/Dialogs/InteractionDialog.razor.cs +++ b/FoodsharingSiegen.Server/Dialogs/InteractionDialog.razor.cs @@ -60,7 +60,6 @@ namespace FoodsharingSiegen.Server.Dialogs InteractionType.Complete => true, InteractionType.IdCheck => true, InteractionType.PrintPass => true, - InteractionType.PdfPass => true, InteractionType.ReleasedForVerification => true, _ => false }; @@ -82,7 +81,6 @@ namespace FoodsharingSiegen.Server.Dialogs var showNotNeeded = parameter.Type switch { InteractionType.PrintPass => true, - InteractionType.PdfPass => true, _ => false }; diff --git a/FoodsharingSiegen.Shared/Helper/TermHelper.cs b/FoodsharingSiegen.Shared/Helper/TermHelper.cs index 54da768..725ae57 100644 --- a/FoodsharingSiegen.Shared/Helper/TermHelper.cs +++ b/FoodsharingSiegen.Shared/Helper/TermHelper.cs @@ -24,7 +24,6 @@ namespace FoodsharingSiegen.Shared.Helper InteractionType.Welcome => "Begrüßung", InteractionType.IdCheck => "Perso-Check", InteractionType.PrintPass => "FS-Ausweis", - InteractionType.PdfPass => "FS-Ausweis (PDF)", InteractionType.Verify => "Verifizierung", InteractionType.Complete => "Fertig", InteractionType.StepInBriefing => appSettings.Terms.StepInName ?? "StepIn",