mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Add event-tracking to the make-token-based action
This commit is contained in:
parent
cc67b871e9
commit
030ffbe231
1 changed files with 2 additions and 1 deletions
|
@ -231,11 +231,12 @@ define [
|
|||
$modalInstance.dismiss()
|
||||
]
|
||||
|
||||
App.controller "MakeTokenBasedModalController", ["$scope", "$modalInstance", "settings", ($scope, $modalInstance, settings) ->
|
||||
App.controller "MakeTokenBasedModalController", ["$scope", "$modalInstance", "settings", "event_tracking", ($scope, $modalInstance, settings, event_tracking) ->
|
||||
|
||||
$scope.makeTokenBased = () ->
|
||||
$scope.project.publicAccesLevel = "tokenBased"
|
||||
settings.saveProjectAdminSettings({publicAccessLevel: "tokenBased"})
|
||||
event_tracking.sendMB 'project-make-token-based'
|
||||
$modalInstance.close()
|
||||
|
||||
$scope.cancel = () ->
|
||||
|
|
Loading…
Reference in a new issue