mirror of
https://github.com/nasa/openmct.git
synced 2025-02-21 09:52:04 +00:00
[Timeline] Change ordering in mct-representation
...such that the configuration property is available in scope when a view is first instantiated. #908
This commit is contained in:
parent
5b4952d4c6
commit
20ecf168f2
@ -180,10 +180,6 @@ define(
|
|||||||
// representation to store local variables into.
|
// representation to store local variables into.
|
||||||
$scope.representation = {};
|
$scope.representation = {};
|
||||||
|
|
||||||
// Change templates (passing in undefined to clear
|
|
||||||
// if we don't have enough info to show a template.)
|
|
||||||
changeTemplate(canRepresent ? representation : undefined);
|
|
||||||
|
|
||||||
// Any existing representers are no longer valid; release them.
|
// Any existing representers are no longer valid; release them.
|
||||||
destroyRepresenters();
|
destroyRepresenters();
|
||||||
|
|
||||||
@ -230,6 +226,10 @@ define(
|
|||||||
// next change object/key pair changes
|
// next change object/key pair changes
|
||||||
toClear = uses.concat(['model']);
|
toClear = uses.concat(['model']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Change templates (passing in undefined to clear
|
||||||
|
// if we don't have enough info to show a template.)
|
||||||
|
changeTemplate(canRepresent ? representation : undefined);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update the representation when the key changes (e.g. if a
|
// Update the representation when the key changes (e.g. if a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user