mcgilman commented on code in PR #8386:
URL: https://github.com/apache/nifi/pull/8386#discussion_r1488490343


##########
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/pages/provenance/state/provenance-event-listing/provenance-event-listing.effects.ts:
##########
@@ -311,18 +321,31 @@ export class ProvenanceEventListingEffects {
                             dialogReference.componentInstance.replay
                                 .pipe(takeUntil(dialogReference.afterClosed()))
                                 .subscribe(() => {
-                                    
this.provenanceService.replay(request.id).subscribe(() => {
-                                        this.store.dispatch(
-                                            
ProvenanceEventListingActions.showOkDialog({
-                                                title: 'Provenance',
-                                                message: 'Successfully 
submitted replay request.'
-                                            })
-                                        );
+                                    
this.provenanceService.replay(request.id).subscribe({
+                                        next: () => {
+                                            dialogReference.close();
+
+                                            this.store.dispatch(
+                                                
ProvenanceEventListingActions.showOkDialog({
+                                                    title: 'Provenance',
+                                                    message: 'Successfully 
submitted replay request.'
+                                                })
+                                            );
+                                        },
+                                        error: (errorResponse: 
HttpErrorResponse) => {
+                                            this.store.dispatch(
+                                                ErrorActions.snackBarError({ 
error: errorResponse.error })
+                                            );

Review Comment:
   I made this choice because the error isn't based on user input (there's 
nothing they can change and resubmit) in the dialog and a snackbar error was 
used in similar situations like when loading descriptors for new services and 
parameters.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to