Content
View differences
Updated by Aleix Suau about 5 years ago
When dropping an element from one column to another, the WorkPackageCardViewComponent.workPackages setter where the element is dropped is called twice:
* First with the original results (e.g. length 1) from this.halEvents.aggregated$('WorkPackage').
* This is called whenever a wp is edited
* Second with the final result (e.g. length 2) from this.querySpace.results.values$
* This is called whenever a wp is moved from one column to another (because it changes the query itself (gridWidget))
A possible solution would be to extend the WorkPackageSingleCardComponent to get its data from the store when it is passed an @Input wpId.
* First with the original results (e.g. length 1) from this.halEvents.aggregated$('WorkPackage').
* This is called whenever a wp is edited
* Second with the final result (e.g. length 2) from this.querySpace.results.values$
* This is called whenever a wp is moved from one column to another (because it changes the query itself (gridWidget))
A possible solution would be to extend the WorkPackageSingleCardComponent to get its data from the store when it is passed an @Input wpId.