red-ui/apps/red-ui/src/app/models/notification-preferences.ts
2021-09-30 19:06:34 +03:00

27 lines
1.2 KiB
TypeScript

import { FormControl } from '@angular/forms';
export class NotificationPreferences {
//TODO replace hardcoded values with the ones from backend when it will be done
readonly isActive: FormControl = new FormControl(true);
readonly sendSchedule?: FormControl;
readonly dossierStatusChanges: FormControl = new FormControl(true);
readonly requestToJoinTheDossier: FormControl = new FormControl(true);
readonly documentStatusChanges: FormControl = new FormControl(true);
readonly documentIsSentForApproval: FormControl = new FormControl(true);
readonly whenIAmAssignedOnADocument: FormControl = new FormControl(true);
readonly whenIAmUnassignedFromADocument: FormControl = new FormControl(true);
readonly whenADocumentIsApproved: FormControl = new FormControl(true);
readonly whenADocumentIsSentForApproval: FormControl = new FormControl(true);
readonly whenADocumentIsAssignedToAReviewer: FormControl = new FormControl(true);
readonly whenAReviewerIsUnassignedFromADocument: FormControl = new FormControl(true);
constructor(sendSchedule?: string) {
if (sendSchedule) {
this.sendSchedule = new FormControl(sendSchedule);
}
}
}