Skip to content

Commit a92e50b

Browse files
committed
fix(mdl): add upgrade dom after navigate to investigation
1 parent f3e9d7a commit a92e50b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/app/components/investig-wrap-table/investig-wrap-table.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h1 class="mdl-card__title-text">{{ config.title }}</h1>
5252
</td>
5353
<td class="mdl-data-table__cell--non-numeric">{{ row.originSource }}</td>
5454
<td>
55-
<button class="mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect button--colored-dove-gray" [routerLink]="['/app/investigation', row.id]">
55+
<button class="mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect button--colored-dove-gray" (click)="onClick()" [routerLink]="['/app/investigation', row.id]">
5656
<i class="material-icons">remove_red_eye</i>
5757
</button>
5858
</td>

src/app/components/investig-wrap-table/investig-wrap-table.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,8 @@ export class InvestigWrapTableComponent extends UpgradableComponent implements O
124124
this.loadData(this.filterValues, page);
125125
}
126126
}
127+
128+
public onClick() {
129+
setTimeout(() => componentHandler.upgradeDom(), 200);
130+
}
127131
}

0 commit comments

Comments
 (0)