[NIFI-12990] close enable/disable CS dialog when go to is clicked (#8690)

* [NIFI-12990] close enable/disable CS dialog when go to is clicked

* review feedback addressed

This closes #8690
This commit is contained in:
Scott Aslan 2024-04-24 13:48:37 -04:00 committed by GitHub
parent 562eece6e3
commit 7995358046
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 5 deletions

View File

@ -404,6 +404,8 @@ export class ManagementControllerServicesEffects {
enableDialogReference.componentInstance.goToReferencingComponent = ( enableDialogReference.componentInstance.goToReferencingComponent = (
component: ControllerServiceReferencingComponent component: ControllerServiceReferencingComponent
) => { ) => {
enableDialogReference.close('ROUTED');
const route: string[] = this.getRouteForReference(component); const route: string[] = this.getRouteForReference(component);
this.router.navigate(route); this.router.navigate(route);
}; };
@ -435,6 +437,8 @@ export class ManagementControllerServicesEffects {
enableDialogReference.componentInstance.goToReferencingComponent = ( enableDialogReference.componentInstance.goToReferencingComponent = (
component: ControllerServiceReferencingComponent component: ControllerServiceReferencingComponent
) => { ) => {
enableDialogReference.close('ROUTED');
const route: string[] = this.getRouteForReference(component); const route: string[] = this.getRouteForReference(component);
this.router.navigate(route); this.router.navigate(route);
}; };

View File

@ -135,11 +135,9 @@
} @else { } @else {
<div [ngClass]="getServiceStateIcon(service.component)"></div> <div [ngClass]="getServiceStateIcon(service.component)"></div>
} }
<a <a (click)="goToReferencingComponentClicked($event, service.component)">{{
(click)="goToReferencingComponentClicked($event, service.component)" service.component.name
mat-dialog-close="ROUTED" }}</a>
>{{ service.component.name }}</a
>
@if (hasBulletins(service)) { @if (hasBulletins(service)) {
<div <div
class="pointer fa fa-sticky-note-o primary-color" class="pointer fa fa-sticky-note-o primary-color"