Skip to content

Commit a416299

Browse files
authored
Merge pull request #442 from kac89/dev
up
2 parents 3fee1f7 + 054ba01 commit a416299

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/app/dialog-pass/dialog-pass.component.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,19 @@ <h2 mat-dialog-title>
77
<input matInput placeholder="Report security key" #pass [formControl]="insertpass"
88
(keydown)="onKeydown($event,pass.value,data.report_id)" [type]="hide ? 'password' : 'text'">
99
<mat-icon matSuffix (click)="hide = !hide">{{hide ? 'visibility_off' : 'visibility'}}</mat-icon>
10+
<mat-hint>
11+
<strong *ngIf="msg != ''">
12+
<mat-icon class="vertical-align-middle size-45">https</mat-icon> {{msg}}
13+
</strong>
14+
</mat-hint>
1015
<mat-error *ngIf="insertpass.hasError('incorrect')">
1116
<strong>
1217
<mat-icon class="vertical-align-middle size-45">https</mat-icon> Security key is incorrect!
1318
</strong>
1419
</mat-error>
1520
</mat-form-field>
1621

17-
<div *ngIf="msg != ''">
18-
{{msg}}<mat-progress-bar color="accent" mode="indeterminate"></mat-progress-bar>
19-
</div>
22+
2023
</form>
2124
</div>
2225
</mat-dialog-content>
@@ -35,3 +38,6 @@ <h2 mat-dialog-title>
3538

3639
</div>
3740
</mat-dialog-actions>
41+
<div *ngIf="msg != ''">
42+
<mat-progress-bar color="accent" mode="indeterminate"></mat-progress-bar>
43+
</div>

src/app/dialog-pass/dialog-pass.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class DialogPassComponent implements OnInit {
3737
}
3838

3939
decrypt(pass: string, report_id: string) {
40-
this.msg = 'Report is decrypted please wait...';
40+
this.msg = 'Report is decrypted, please wait...';
4141

4242
this.indexeddbService.decrypt(pass, report_id).then(returned => {
4343
if (returned) {

0 commit comments

Comments
 (0)