aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/modal/custom-modal.component.html
blob: cdfbfbb6a61983362e0d2a9a2698d1839eed0c46 (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                                                                                                                              
 


                                                                       
                                                                                                                  


                                                             
                                                                                                                      


                                                               
<ng-template #modal let-hide="close">
  <div class="modal-header">
    <h4 class="modal-title">{{title}}</h4>
    <my-global-icon *ngIf="close" iconName="cross" aria-label="Close" role="button" (click)="onCloseClick()"></my-global-icon>
  </div>

  <div class="modal-body" [innerHTML]="content"></div>

  <div *ngIf="hasCancel() || hasConfirm()" class="modal-footer inputs">
    <input
      *ngIf="hasCancel()" type="button" role="button" value="{{cancel.value}}" class="peertube-button grey-button"
      (click)="onCancelClick()" (key.enter)="onCancelClick()"
    >

    <input
      *ngIf="hasConfirm()" type="button" role="button" value="{{confirm.value}}" class="peertube-button orange-button"
      (click)="onConfirmClick()" (key.enter)="onConfirmClick()"
    >
  </div>
</ng-template>