Interaction Alert

This commit is contained in:
Andre Beging
2022-04-08 16:12:25 +02:00
parent 7fb5ecf04a
commit 38eec13a1b
5 changed files with 22 additions and 3 deletions

View File

@@ -21,6 +21,7 @@ namespace FoodsharingSiegen.Server.Dialogs
private string _header;
private string _infoName;
private bool _showInfo;
private bool _showAlert;
private bool _showNotNeeded;
protected override async Task OnParametersSetAsync()
@@ -34,6 +35,8 @@ namespace FoodsharingSiegen.Server.Dialogs
{
if (prospectId == null) return;
_showInfo = false;
_showNotNeeded = false;
_showAlert = false;
_infoName = "Kommentar";
switch (type)
@@ -41,6 +44,7 @@ namespace FoodsharingSiegen.Server.Dialogs
case InteractionType.EinAb:
_header = "Einführung eintragen";
_showInfo = true;
_showAlert = true;
_infoName = "Welcher Betrieb?";
break;
case InteractionType.Welcome:
@@ -48,6 +52,7 @@ namespace FoodsharingSiegen.Server.Dialogs
break;
case InteractionType.IdCheck:
_header = "Ausweisprüfung eintragen";
_showAlert = true;
_showInfo = true;
break;
case InteractionType.PrintPass:
@@ -68,7 +73,7 @@ namespace FoodsharingSiegen.Server.Dialogs
_showInfo = true;
break;
}
Interaction = new Interaction
{
Type = type,