diff --git a/src/Application/Features/QualityAssurance/Commands/SubmitQa1Response.cs b/src/Application/Features/QualityAssurance/Commands/SubmitQa1Response.cs index c30c4aec..4e4da1ca 100644 --- a/src/Application/Features/QualityAssurance/Commands/SubmitQa1Response.cs +++ b/src/Application/Features/QualityAssurance/Commands/SubmitQa1Response.cs @@ -16,7 +16,6 @@ public class Command : IRequest public string Message { get; set; } = default!; - public bool IsMessageExternal { get; set; } public UserProfile? CurrentUser { get; set; } } @@ -33,7 +32,7 @@ public async Task Handle(Command request, CancellationToken cancellation return Result.Failure("Cannot find queue item"); } - entry.AddNote(request.Message, request.IsMessageExternal); + entry.AddNote(request.Message, isExternal: false); if (request.Accept.GetValueOrDefault()) { diff --git a/src/Server.UI/Pages/QA/Enrolments/QA1.razor b/src/Server.UI/Pages/QA/Enrolments/QA1.razor index f7b12c12..cd5db8bd 100644 --- a/src/Server.UI/Pages/QA/Enrolments/QA1.razor +++ b/src/Server.UI/Pages/QA/Enrolments/QA1.razor @@ -95,27 +95,12 @@ - @if (Command.IsMessageExternal) - { - - This comment will be visible to PQA (and internal members of CFO staff) - - } - else - { - - This comment will only be visible to internal members of CFO staff - - } + + This comment will only be visible to internal members of CFO staff + - - - - + Characters: @characterCount / 1000 @@ -190,28 +175,18 @@ return; } - bool submit = true; + var result = await GetNewMediator().Send(Command); - if (Command is { IsMessageExternal: true, Message.Length: > 0 }) + if (result.Succeeded) { - submit = await warningMessage!.ShowAsync(); + Snackbar.Add("Participant submitted to QA2", Severity.Info); + Navigation.NavigateTo("/pages/qa/enrolments/qa1", true); } - - if(submit) + else { - var result = await GetNewMediator().Send(Command); - - if (result.Succeeded) - { - Snackbar.Add("Participant submitted to QA2", Severity.Info); - Navigation.NavigateTo("/pages/qa/enrolments/qa1", true); - } - else - { - ShowActionFailure("Failed to submit", result); - } + ShowActionFailure("Failed to submit", result); } - + } private void ShowActionFailure(string title, IResult result)