PCRB follow up client side logic

This commit is contained in:
Chase Tucker
2025-03-19 10:01:35 -07:00
parent 4871668a90
commit cc4781b990
45 changed files with 3082 additions and 1008 deletions

View File

@ -65,6 +65,8 @@ public partial class MRBSingle {
protected override async Task OnParametersSetAsync() {
processing = true;
try {
cache.Set("redirectUrl", $"mrb/{mrbNumber}");
allActiveUsers = await userService.GetAllActiveUsers();
currentUser = authStateProvider.CurrentUser;
currentUrl = navigationManager.Uri;
@ -285,7 +287,7 @@ public partial class MRBSingle {
string? comments = "";
DialogParameters<Comments> parameters = new DialogParameters<Comments> { { x => x.comments, comments } };
var dialog = dialogService.Show<Comments>($"Approval Comments", parameters);
var dialog = await dialogService.ShowAsync<Comments>($"Approval Comments", parameters);
var result = await dialog.Result;
@ -412,7 +414,7 @@ public partial class MRBSingle {
if (currentUser is null) {
recallInProcess = false;
snackbar.Add("You must be logged in to recall this MRB", Severity.Error);
navigationManager.NavigateTo($"login/mrb/{mrb.MRBNumber}");
navigationManager.NavigateTo($"login?redirectPath=mrb/{mrb.MRBNumber}");
} else {
await mrbService.RecallMRB(mrb, currentUser);
mrbApprovals = await approvalService.GetApprovalsForIssueId(mrb.MRBNumber, true);