Skip to content

Commit 7678640

Browse files
authored
Merge pull request #382 from kinfkong/issue-232
fix issue #232
2 parents 693d070 + 778f058 commit 7678640

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/app/app.component.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,4 @@ $header-height: 60px;
138138

139139
}
140140
}
141+

src/app/components/information-dialog/information-dialog.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<h1 mat-dialog-title class="title">Help
33
<button mat-icon-button [mat-dialog-close]="null"><i class="material-icons">close</i></button>
44
</h1>
5-
<div mat-dialog-content class="dialog-root">
5+
<div mat-dialog-content class="dialog-root" [style.display]="!isLoading ? 'block' : 'none'">
66
<mat-expansion-panel>
77
<mat-expansion-panel-header>
88
<mat-panel-title>

src/app/components/information-dialog/information-dialog.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ import {MAT_DIALOG_DATA} from '@angular/material';
77
styleUrls: ['./information-dialog.component.scss']
88
})
99
export class InformationDialogComponent implements OnInit {
10+
isLoading = true;
1011
constructor(
1112
@Inject(MAT_DIALOG_DATA) public data) {
1213
}
1314

1415

1516
ngOnInit() {
17+
setTimeout(() => {
18+
this.isLoading = false;
19+
}, 300);
1620
}
1721

1822
}

0 commit comments

Comments
 (0)