mirror of
https://github.com/nasa/openmct.git
synced 2025-04-19 00:27:03 +00:00
add mutation listener to Inspector Controller
This commit is contained in:
parent
bfa3bbcdc7
commit
06779e6cd9
@ -38,6 +38,8 @@ define(
|
||||
$scope.contextutalParents = [];
|
||||
//$scope.isLink = false;
|
||||
|
||||
this.InspectorMutation = $scope.ngModel.selectedObject.getCapability('mutation');
|
||||
|
||||
// Gets an array of the contextual parents/ancestors of the selected object
|
||||
function getContextualPath() {
|
||||
var currentObj = $scope.ngModel.selectedObject,
|
||||
@ -108,8 +110,11 @@ define(
|
||||
|
||||
getMetadata();
|
||||
});
|
||||
}
|
||||
|
||||
this.InspectorMutation.listen(function(){
|
||||
getMetadata();
|
||||
});
|
||||
}
|
||||
return ObjectInspectorController;
|
||||
}
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user