mirror of
https://github.com/nasa/openmct.git
synced 2025-06-17 14:48:13 +00:00
Tree revert refactor (#3886)
* Reverts object tree to expand/collapse tree model * Retains expanded/collapsed state * Adds collapse all feature
This commit is contained in:
committed by
GitHub
parent
43ac66233e
commit
dbed9262c0
@ -215,12 +215,12 @@ define([
|
||||
* @memberof {module:openmct.CompositionCollection#}
|
||||
* @name load
|
||||
*/
|
||||
CompositionCollection.prototype.load = function () {
|
||||
CompositionCollection.prototype.load = function (abortSignal) {
|
||||
this.cleanUpMutables();
|
||||
|
||||
return this.provider.load(this.domainObject)
|
||||
.then(function (children) {
|
||||
return Promise.all(children.map((c) => this.publicAPI.objects.get(c)));
|
||||
return Promise.all(children.map((c) => this.publicAPI.objects.get(c, abortSignal)));
|
||||
}.bind(this))
|
||||
.then(function (childObjects) {
|
||||
childObjects.forEach(c => this.add(c, true));
|
||||
|
Reference in New Issue
Block a user