fix: Gantt Chart displays draft status of Plan in composition (#6642)
* fix: setStatus when add/replace a plan in composition * test: add regression test * chore: lint:fix * test: add visual tests for plan and gantt chart drafts
This commit is contained in:
@@ -211,6 +211,7 @@ export default {
|
||||
this.removeFromComposition(this.planObject);
|
||||
this.planObject = domainObject;
|
||||
this.planData = getValidatedData(domainObject);
|
||||
this.setStatus(this.openmct.status.get(domainObject.identifier));
|
||||
this.setScaleAndGenerateActivities();
|
||||
dialog.dismiss();
|
||||
}
|
||||
@@ -232,6 +233,7 @@ export default {
|
||||
this.planObject = domainObject;
|
||||
this.swimlaneVisibility = this.configuration.swimlaneVisibility;
|
||||
this.planData = getValidatedData(domainObject);
|
||||
this.setStatus(this.openmct.status.get(domainObject.identifier));
|
||||
this.setScaleAndGenerateActivities();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user