Skip to content
Snippets Groups Projects
Commit 8a47b936 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FIX #12070 TIME 0:15 fix save diff formcontrol

parent a8260a2a
No related branches found
No related tags found
No related merge requests found
...@@ -368,6 +368,10 @@ export class DiffusionsListComponent implements OnInit { ...@@ -368,6 +368,10 @@ export class DiffusionsListComponent implements OnInit {
item_mode: "copy" item_mode: "copy"
}; };
this.diffList['copy'].items.unshift(newElemListModel); this.diffList['copy'].items.unshift(newElemListModel);
if (this.diffFormControl !== undefined) {
this.setFormValues();
}
} }
} }
...@@ -391,6 +395,9 @@ export class DiffusionsListComponent implements OnInit { ...@@ -391,6 +395,9 @@ export class DiffusionsListComponent implements OnInit {
} else { } else {
this.changeUserRole(user, oldRole, newRole); this.changeUserRole(user, oldRole, newRole);
} }
if (this.diffFormControl !== undefined) {
this.setFormValues();
}
//} //}
} }
...@@ -457,6 +464,7 @@ export class DiffusionsListComponent implements OnInit { ...@@ -457,6 +464,7 @@ export class DiffusionsListComponent implements OnInit {
if (indexFound > -1) { if (indexFound > -1) {
this.diffList[oldRole.id].items.splice(indexFound, 1); this.diffList[oldRole.id].items.splice(indexFound, 1);
} }
user.item_mode = newRole.id;
this.diffList[newRole.id].items.push(user); this.diffList[newRole.id].items.push(user);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment