Skip to content

Commit

Permalink
fix(ui): edit notifications (#5463)
Browse files Browse the repository at this point in the history
close #5055, #5290

Signed-off-by: francois  samin <[email protected]>
  • Loading branch information
fsamin authored Oct 2, 2020
1 parent 983bb56 commit bf55821
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export class WorkflowDeleteNodeComponent {

deleteNode(): void {
let clonedWorkflow = cloneDeep(this.workflow);
clonedWorkflow.notifications = cloneDeep(this.workflow.notifications);
if (this.deleteAll === 'only') {
Workflow.removeNodeOnly(clonedWorkflow, this.node.id);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ export class WorkflowNotificationFormComponent implements OnInit {

createNotification(): void {
this.loading = true;
this.notification.node_id = [];
this.notification.source_node_ref.forEach(source => {
let n = Workflow.getAllNodes(this.workflow).find(p => p.name === source );
this.notification.node_id.push(n.id);
}
);

if (this.selectedUsers != null) {
this.notification.settings.recipients = this.selectedUsers.split(',');
Expand Down

0 comments on commit bf55821

Please sign in to comment.