Skip to content

Commit 41a99e2

Browse files
Merge pull request #583 from christyfernandes/odcs-mapping
Odcs mapping
2 parents 513167c + 4d78882 commit 41a99e2

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

project/ws/app/src/lib/routes/home/routes/odcs-mapping/odcs-mapping.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ <h1 class="mat-heading-1">{{odcConfig?.mainHeading}}</h1>
1111
<div class="flex">
1212
<span class="mat-body-1 font-bold-imp flex-1">{{odcConfig?.topsection?.heading}}</span>
1313
<mat-icon class="cursor-pointer mat-icon mr-4" *ngIf="showTopSection"
14-
(click)="showTopSection = !showTopSection">keyboard_arrow_up</mat-icon>
14+
(click)="showTopSection = !showTopSection; callResizeEvent($event)">keyboard_arrow_up</mat-icon>
1515
<mat-icon class="cursor-pointer mat-icon mr-4" *ngIf="!showTopSection"
16-
(click)="showTopSection = !showTopSection">keyboard_arrow_down</mat-icon>
16+
(click)="showTopSection = !showTopSection; callResizeEvent($event)">keyboard_arrow_down</mat-icon>
1717
</div>
1818
<div class="mt-5" *ngIf="showTopSection">
1919
<div class="flex">
@@ -32,7 +32,7 @@ <h1 class="mat-heading-1">{{odcConfig?.mainHeading}}</h1>
3232
</div>
3333
</div>
3434
</mat-card>
35-
<div>
35+
<div *ngIf="environmentVal && environmentVal.frameworkName">
3636
<lib-taxonomy-view [environment]="environmentVal" [taxonomyConfig]="taxonomyConfig"></lib-taxonomy-view>
3737
</div>
3838
</div>

project/ws/app/src/lib/routes/home/routes/odcs-mapping/odcs-mapping.component.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export class OdcsMappingComponent implements OnInit {
1919
showLoader = false
2020
loaderMsg = ''
2121
orgId = ''
22-
2322
constructor(
2423
private activateRoute: ActivatedRoute,
2524
private designationsService: DesignationsService,
@@ -50,6 +49,12 @@ export class OdcsMappingComponent implements OnInit {
5049
}
5150
}
5251

52+
callResizeEvent(_event: any) {
53+
setTimeout(() => {
54+
window.dispatchEvent(new Event('resize'))
55+
}, 100)
56+
}
57+
5358
createFreamwork() {
5459
this.loaderMsg = this.odcConfig.frameworkCreationMSg
5560
const departmentName = _.get(this.configSvc, 'userProfile.departmentName').replace(/\s/g, '')
@@ -74,7 +79,7 @@ export class OdcsMappingComponent implements OnInit {
7479
} else {
7580
setTimeout(() => {
7681
this.getOrgReadData()
77-
}, 10000)
82+
}, 10000)
7883
}
7984
})
8085
}

0 commit comments

Comments
 (0)