[Edit Mode] Visual indication of object being edited #278

This commit is contained in:
Henry
2015-11-19 18:45:18 -08:00
parent 9631d95a52
commit 10a44c026c
5 changed files with 26 additions and 4 deletions

View File

@ -144,6 +144,15 @@ define(
this.$timeout = $timeout;
this.$scope = $scope;
//$scope.editing =
// $scope.domainObject.getCapability('status').get().indexOf('editing') >=0;
//TODO: Temporary hack until css classes are defined for status
// change
$scope.domainObject.getCapability('status').listen(function(status){
$scope.editing = status.indexOf('editing') >=0;
});
// Listen for changes which will effect display parameters
$scope.$watch("ngModel.selectedObject", setSelection);
$scope.$watch("domainObject", checkSelection);