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

View File

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