PCRB follow up client side logic
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user