Reviewed edit mode checking

This commit is contained in:
Henry
2016-04-20 13:11:07 -07:00
parent 1753a5473c
commit 836b5db8cf
3 changed files with 5 additions and 5 deletions

View File

@@ -57,7 +57,8 @@ define(
function storeZoom() {
var isEditMode = $scope.commit &&
$scope.domainObject &&
$scope.domainObject.hasCapability('editor');
$scope.domainObject.hasCapability('editor') &&
$scope.domainObject.getCapability('editor').inEditContext();
if (isEditMode) {
$scope.configuration = $scope.configuration || {};
$scope.configuration.zoomLevel = zoomIndex;