Skip to content

Commit 7b3c2ce

Browse files
Made gateway map component use organization subject for updating (#131)
1 parent 0445054 commit 7b3c2ce

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/app/gateway/gateway-overview/gateway-tabs/gateway-map/gateway-map.component.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ export class GatewayMapComponent implements OnInit, OnDestroy, AfterViewInit {
2626
ngOnInit(): void {}
2727

2828
ngAfterViewInit() {
29+
this.gatewayService.organisationChangeSubject.subscribe((x) => {
30+
if (x) {
31+
this.getGatewayWith(x);
32+
} else {
33+
this.getGateways();
34+
}
35+
});
2936
if (this.gatewayService.selectedOrg) {
3037
this.getGatewayWith(this.gatewayService.selectedOrg);
3138
} else {

0 commit comments

Comments
 (0)