Federated video streaming platform using ActivityPub and P2P in the web browser with Angular. https://joinpeertube.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
1.1 KiB

  1. <ng-template #modal>
  2. <div class="modal-header">
  3. <h4 i18n class="modal-title">Ban</h4>
  4. <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon>
  5. </div>
  6. <div class="modal-body">
  7. <form novalidate [formGroup]="form" (ngSubmit)="banUser()">
  8. <div class="form-group">
  9. <textarea
  10. i18n-placeholder placeholder="Reason..." formControlName="reason"
  11. class="form-control" [ngClass]="{ 'input-error': formErrors['reason'] }"
  12. ></textarea>
  13. <div *ngIf="formErrors.reason" class="form-error">
  14. {{ formErrors.reason }}
  15. </div>
  16. </div>
  17. <div i18n>
  18. A banned user will no longer be able to login.
  19. </div>
  20. <div class="form-group inputs">
  21. <input
  22. type="button" role="button" i18n-value value="Cancel" class="peertube-button grey-button"
  23. (click)="hide()" (key.enter)="hide()"
  24. >
  25. <input type="submit" i18n-value [value]="modalMessage" class="peertube-button orange-button" [disabled]="!form.valid" />
  26. </div>
  27. </form>
  28. </div>
  29. </ng-template>