2018-08-09 08:55:06 -04:00
|
|
|
<ng-template #confirmModal let-close="close" let-dismiss="dismiss">
|
2017-01-27 10:54:44 -05:00
|
|
|
|
2018-08-09 08:55:06 -04:00
|
|
|
<div class="modal-header">
|
|
|
|
<h4 class="modal-title">{{ title }}</h4>
|
2019-01-16 10:05:40 -05:00
|
|
|
|
|
|
|
<my-global-icon iconName="cross" aria-label="Close" role="button" (click)="dismiss()"></my-global-icon>
|
2018-08-09 08:55:06 -04:00
|
|
|
</div>
|
2017-01-27 10:54:44 -05:00
|
|
|
|
2018-08-09 08:55:06 -04:00
|
|
|
<div class="modal-body" >
|
|
|
|
<div [innerHtml]="message"></div>
|
2017-01-27 10:54:44 -05:00
|
|
|
|
2018-08-09 08:55:06 -04:00
|
|
|
<div *ngIf="inputLabel && expectedInputValue" class="form-group">
|
|
|
|
<label for="confirmInput">{{ inputLabel }}</label>
|
|
|
|
<input type="text" id="confirmInput" name="confirmInput" [(ngModel)]="inputValue" />
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-02-22 09:29:32 -05:00
|
|
|
|
2018-08-09 08:55:06 -04:00
|
|
|
<div class="modal-footer inputs">
|
2020-04-02 05:39:14 -04:00
|
|
|
<input
|
2021-04-14 10:39:37 -04:00
|
|
|
type="button" role="button" i18n-value value="Cancel" class="peertube-button grey-button"
|
2020-04-02 05:39:14 -04:00
|
|
|
(click)="dismiss()" (key.enter)="dismiss()"
|
|
|
|
>
|
2017-12-20 11:49:58 -05:00
|
|
|
|
2018-08-09 08:55:06 -04:00
|
|
|
<input
|
2020-04-02 05:39:14 -04:00
|
|
|
ngbAutofocus
|
2021-04-14 10:39:37 -04:00
|
|
|
type="submit" [value]="confirmButtonText" class="peertube-button orange-button" [disabled]="isConfirmationDisabled()"
|
2020-04-02 05:39:14 -04:00
|
|
|
(click)="close()" (key.enter)="confirm()"
|
2018-08-09 08:55:06 -04:00
|
|
|
>
|
2017-01-27 10:54:44 -05:00
|
|
|
</div>
|
2018-08-09 08:55:06 -04:00
|
|
|
</ng-template>
|