fix: made user room number a string for added flexibility

This commit is contained in:
2025-05-06 21:45:53 +02:00
parent fd9380a61d
commit b7f9ee572e
12 changed files with 30 additions and 35 deletions

View File

@@ -11,7 +11,7 @@
<mat-radio-button value="room">
<mat-form-field>
<mat-label>Pokój</mat-label>
<input matInput type="number" formControlName="room">
<input matInput type="text" formControlName="room">
</mat-form-field>
</mat-radio-button>
<mat-radio-button value="group" *ngIf="ls.capCheck(8)">

View File

@@ -27,7 +27,7 @@ export class NotificationsComponent implements OnInit {
form = new FormGroup<NotificationForm>({
recp: new FormGroup({
uname: new FormControl<string>(''),
room: new FormControl<number|null>(null),
room: new FormControl<string|null>(null),
group: new FormControl<string>(''),
type: new FormControl<"all" | "room" | "uname" | "group">('uname', {nonNullable: true})
}),
@@ -47,7 +47,7 @@ interface NotificationForm {
title: FormControl<string>;
recp: FormGroup<{
uname: FormControl<string | null>;
room: FormControl<number | null>;
room: FormControl<string | null>;
group: FormControl<string | null>;
type: FormControl<"all" | "room" | "uname" | "group">;
}>