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:
Jesse Mazzella
2023-05-05 16:48:34 -07:00
committed by GitHub
parent 9f079255f1
commit ba4353aacb
3 changed files with 74 additions and 4 deletions

View File

@@ -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();
}
},