Skip to content

Commit

Permalink
Dialog component - Add progressBar option (#634)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paahn authored Nov 19, 2024
1 parent d57e33c commit 9fccc5e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ export class BcProviderEditPage
height: '24rem',
cancelHide: true,
actionHide: true,
progressBar: true,
};
this.dialog.open(this.mfaDialogTemplate, { data });
}
Expand All @@ -335,6 +336,7 @@ export class BcProviderEditPage
actionText: 'Continue',
actionTypePosition: 'center',
cancelHide: true,
progressBar: true,
};
this.dialog
.open(this.mfaDialogTemplate, { data, disableClose: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,18 @@
}">
<p *ngIf="options.message">{{ options.message }}</p>
<ng-template #dialogContentHost></ng-template>
<mat-progress-bar
*ngIf="loading$ | async"
class="progress-bar"
mode="determinate"
[value]="progressBarValue"></mat-progress-bar>
<mat-progress-bar
*ngIf="progressComplete"
class="progress-bar-complete"
mode="determinate"
[value]="100"></mat-progress-bar>
<div *ngIf="options.progressBar">
<mat-progress-bar
*ngIf="loading$ | async"
class="progress-bar"
mode="determinate"
[value]="progressBarValue"></mat-progress-bar>
<mat-progress-bar
*ngIf="progressComplete"
class="progress-bar-complete"
mode="determinate"
[value]="100"></mat-progress-bar>
</div>
</mat-dialog-content>
<mat-dialog-actions
[class]="{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ export interface DialogOptions {
/** overload the dialog height, if undefined the default value will be used */
height?: string;
class?: string;
progressBar?: boolean;
}

0 comments on commit 9fccc5e

Please sign in to comment.