Move the __enableTokenAccessUI state to top level

This commit is contained in:
Shane Kilkelly 2017-10-30 13:58:22 +00:00
parent 5fe5125a5c
commit a3e5788b97
2 changed files with 1 additions and 1 deletions

View file

@ -75,6 +75,7 @@ define [
miniReviewPanelVisible: false
}
$scope.user = window.user
$scope.__enableTokenAccessUI = window.enableTokenAccessUI == true
$scope.$watch "project.features.trackChangesVisible", (visible) ->
return if !visible?

View file

@ -3,7 +3,6 @@ define [
], (App) ->
App.controller "ShareController", ["$scope", "$modal", "ide", "projectInvites", "projectMembers", "event_tracking",
($scope, $modal, ide, projectInvites, projectMembers, event_tracking) ->
$scope.__enableTokenAccessUI = window.enableTokenAccessUI == true
$scope.openShareProjectModal = () ->
event_tracking.sendMBOnce "ide-open-share-modal-once"