add mutation listener to Inspector Controller

This commit is contained in:
Deep Tailor
2017-10-03 13:33:09 -07:00
parent bfa3bbcdc7
commit 06779e6cd9

View File

@@ -38,6 +38,8 @@ define(
$scope.contextutalParents = []; $scope.contextutalParents = [];
//$scope.isLink = false; //$scope.isLink = false;
this.InspectorMutation = $scope.ngModel.selectedObject.getCapability('mutation');
// Gets an array of the contextual parents/ancestors of the selected object // Gets an array of the contextual parents/ancestors of the selected object
function getContextualPath() { function getContextualPath() {
var currentObj = $scope.ngModel.selectedObject, var currentObj = $scope.ngModel.selectedObject,
@@ -108,8 +110,11 @@ define(
getMetadata(); getMetadata();
}); });
}
this.InspectorMutation.listen(function(){
getMetadata();
});
}
return ObjectInspectorController; return ObjectInspectorController;
} }
); );