add mutation listener to Inspector Controller
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user