Add console helpers to editor, to turn on token-access-ui

This commit is contained in:
Shane Kilkelly 2017-11-02 15:55:10 +00:00
parent 57ae935155
commit e64e388913

View file

@ -82,6 +82,11 @@ define [
} }
$scope.user = window.user $scope.user = window.user
$scope.__enableTokenAccessUI = window.enableTokenAccessUI == true $scope.__enableTokenAccessUI = window.enableTokenAccessUI == true
# TODO: remove after rollout and testing
window.turnOnTokenAccessUI = () ->
$scope.__enableTokenAccessUI = true
window.turnOffTokenAccessUI = () ->
$scope.__enableTokenAccessUI = false
$scope.$watch "project.features.trackChangesVisible", (visible) -> $scope.$watch "project.features.trackChangesVisible", (visible) ->
return if !visible? return if !visible?