OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Simplify date alert setting checkbox activation logic
Dombi Attilae92f06072151
diff --git a/frontend/src/app/features/user-preferences/notifications-settings/page/notifications-settings-page.component.ts b/frontend/src/app/features/user-preferences/notifications-settings/page/notifications-settings-page.component.tsindex 75b8af548b3..d17897f3380 100644--- a/frontend/src/app/features/user-preferences/notifications-settings/page/notifications-settings-page.component.ts+++ b/frontend/src/app/features/user-preferences/notifications-settings/page/notifications-settings-page.component.ts@@ -145,27 +145,15 @@ export class NotificationsSettingsPageComponent extends UntilDestroyedMixin impl});this.form.get('startDate.active')?.valueChanges.subscribe((newValue) => {- if (!newValue) {- this.dateAlertsStatuses.startDate = false;- } else {- this.dateAlertsStatuses.startDate = true;- }+ this.dateAlertsStatuses.startDate = !!newValue;});this.form.get('dueDate.active')?.valueChanges.subscribe((newValue) => {- if (!newValue) {- this.dateAlertsStatuses.dueDate = false;- } else {- this.dateAlertsStatuses.dueDate = true;- }+ this.dateAlertsStatuses.dueDate = !!newValue;});this.form.get('overdue.active')?.valueChanges.subscribe((newValue) => {- if (!newValue) {- this.dateAlertsStatuses.overdue = false;- } else {- this.dateAlertsStatuses.overdue = true;- }+ this.dateAlertsStatuses.overdue = !!newValue;});this.storeService.query.notificationsForGlobal$