From 853ba53d485f465ec4349461be5c613492a3f666 Mon Sep 17 00:00:00 2001 From: Fabio Date: Fri, 10 Jan 2025 15:16:27 -0400 Subject: [PATCH 1/2] FOUR-20670:Enable toogles Notifications per default - Participant Assigne and Due --- .../inspector/TaskNotifications.vue | 37 +++++++++++-------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/resources/js/processes/modeler/components/inspector/TaskNotifications.vue b/resources/js/processes/modeler/components/inspector/TaskNotifications.vue index efea9432b4..1a6e671a5d 100644 --- a/resources/js/processes/modeler/components/inspector/TaskNotifications.vue +++ b/resources/js/processes/modeler/components/inspector/TaskNotifications.vue @@ -71,18 +71,22 @@ this.requester = { assigned: false, completed: false, + due: false, }; this.assignee = { - assigned: false, + assigned: true, completed: false, + due: true, }; this.participants = { assigned: false, completed: false, + due: false, }; this.manager = { assigned: false, completed: false, + due: false, }; }; @@ -95,9 +99,9 @@ requesterAssigned: false, requesterCompleted: false, requesterDue: false, - assigneeAssigned: false, + assigneeAssigned: true, assigneeCompleted: false, - assigneeDue: false, + assigneeDue: true, participantsAssigned: false, participantsCompleted: false, participantsDue: false, @@ -149,18 +153,19 @@ }, methods: { loadNotifications() { - this.requesterAssigned = this.notifications.requester.assigned; - this.requesterCompleted = this.notifications.requester.completed; - this.requesterDue = this.notifications.requester.due; - this.assigneeAssigned = this.notifications.assignee.assigned; - this.assigneeCompleted = this.notifications.assignee.completed; - this.assigneeDue = this.notifications.assignee.due; - this.participantsAssigned = this.notifications.participants.assigned; - this.participantsCompleted = this.notifications.participants.completed; - this.participantsDue = this.notifications.participants.due; - this.managerAssigned = this.notifications.manager.assigned; - this.managerCompleted = this.notifications.manager.completed; - this.managerDue = this.notifications.manager.due; + debugger; + this.requesterAssigned = this.notifications?.requester.assigned; + this.requesterCompleted = this.notifications?.requester.completed; + this.requesterDue = this.notifications?.requester.due; + this.assigneeAssigned = this.notifications?.assignee.assigned; + this.assigneeCompleted = this.notifications?.assignee.completed; + this.assigneeDue = this.notifications?.assignee.due; + this.participantsAssigned = this.notifications?.participants.assigned; + this.participantsCompleted = this.notifications?.participants.completed; + this.participantsDue = this.notifications?.participants.due; + this.managerAssigned = this.notifications?.manager.assigned; + this.managerCompleted = this.notifications?.manager.completed; + this.managerDue = this.notifications?.manager.due; } }, computed: { @@ -183,6 +188,8 @@ } else { this.node.notifications = this.process.task_notifications[this.nodeId]; } + } else { + this.node.notifications = this.process.task_notifications[this.nodeId]; } return this.node.notifications; } From c53c94c552224395f8f318bb1856b6599917e653 Mon Sep 17 00:00:00 2001 From: Fabio Rodolfo Guachalla Blanco Date: Fri, 10 Jan 2025 15:54:51 -0400 Subject: [PATCH 2/2] Update TaskNotifications.vue --- .../processes/modeler/components/inspector/TaskNotifications.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/resources/js/processes/modeler/components/inspector/TaskNotifications.vue b/resources/js/processes/modeler/components/inspector/TaskNotifications.vue index 1a6e671a5d..9cedf5ece2 100644 --- a/resources/js/processes/modeler/components/inspector/TaskNotifications.vue +++ b/resources/js/processes/modeler/components/inspector/TaskNotifications.vue @@ -153,7 +153,6 @@ }, methods: { loadNotifications() { - debugger; this.requesterAssigned = this.notifications?.requester.assigned; this.requesterCompleted = this.notifications?.requester.completed; this.requesterDue = this.notifications?.requester.due;