mirror of https://github.com/apache/nifi.git
[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:
parent
562eece6e3
commit
7995358046
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue