mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-19 19:21:02 +03:00
27 lines
1.2 KiB
HTML
27 lines
1.2 KiB
HTML
<h4 mat-dialog-title>{{dialogTitle}}</h4>
|
|
<mat-dialog-content>
|
|
<div style="margin-bottom: 10px;">
|
|
<!-- We can support text dialogs or dialogs where users must select items from a list -->
|
|
<ng-container *ngIf="dialogType === 'text'">
|
|
{{dialogText}}
|
|
</ng-container>
|
|
<ng-container *ngIf="dialogType === 'selection_list'">
|
|
<mat-selection-list [(ngModel)]="selected_items">
|
|
<mat-list-option *ngFor="let item of list" [value]="item.key">
|
|
{{item.title}}
|
|
</mat-list-option>
|
|
</mat-selection-list>
|
|
</ng-container>
|
|
</div>
|
|
</mat-dialog-content>
|
|
<mat-dialog-actions>
|
|
<!-- The mat-dialog-close directive optionally accepts a value as a result for the dialog. -->
|
|
<button [disabled]="dialogType === 'selection_list' && selected_items.length === 0" [color]="warnSubmitColor ? 'warn' : 'primary'" mat-flat-button type="submit" (click)="confirmClicked()">{{submitText}}</button>
|
|
<div class="mat-spinner" *ngIf="submitClicked">
|
|
<mat-spinner [diameter]="25"></mat-spinner>
|
|
</div>
|
|
<span class="spacer"></span>
|
|
<button style="float: right;" mat-stroked-button mat-dialog-close>
|
|
{{cancelText}}
|
|
</button>
|
|
</mat-dialog-actions> |