unoffical wafrn mirror wafrn.net
atproto social-network activitypub
at angular21 37 lines 1.4 kB view raw
1<h2 class="dialog-title" mat-dialog-title>{{ 2 (data.type === 'user' ? 'dialog.report.reportUserTitle' : 'dialog.report.reportPostTitle') | translate 3}}</h2> 4<mat-dialog-content> 5 <mat-form-field class="w-full"> 6 <mat-label>{{ 'dialog.report.reportTypeLabel' | translate }}</mat-label> 7 <mat-select required [(value)]="reportSeverity"> 8 @for (option of reportOptions | KeyValue; track $index) { 9 <mat-option [value]="option.key">{{ option.value | translate }}</mat-option> 10 } 11 </mat-select> 12 </mat-form-field> 13 <mat-form-field class="w-full"> 14 <mat-label>{{ 'dialog.report.reportDescription' | translate }}</mat-label> 15 <textarea 16 [value]="reportDescription()" 17 (input)="onInput($event)" 18 required 19 matNativeControl 20 cdkTextareaAutosize 21 cdkAutosizeMinRows="3" 22 ></textarea> 23 </mat-form-field> 24 <div> 25 <mat-checkbox class="w-full" (change)="onCheck($event)">{{ 26 'dialog.report.reportBlockUser' | translate 27 }}</mat-checkbox> 28 </div> 29</mat-dialog-content> 30<mat-dialog-actions> 31 <button mat-stroked-button class="dialog-cancel-button" (click)="onCancel()">{{ 32 'dialog.cancel' | translate 33 }}</button> 34 <button mat-flat-button class="dialog-confirm-button" [disabled]="!formValid()" (click)="onConfirm()">{{ 35 'dialog.report.reportConfirm' | translate 36 }}</button> 37</mat-dialog-actions>