mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -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()
|
$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.makeTokenBased = () ->
|
||||||
$scope.project.publicAccesLevel = "tokenBased"
|
$scope.project.publicAccesLevel = "tokenBased"
|
||||||
settings.saveProjectAdminSettings({publicAccessLevel: "tokenBased"})
|
settings.saveProjectAdminSettings({publicAccessLevel: "tokenBased"})
|
||||||
|
event_tracking.sendMB 'project-make-token-based'
|
||||||
$modalInstance.close()
|
$modalInstance.close()
|
||||||
|
|
||||||
$scope.cancel = () ->
|
$scope.cancel = () ->
|
||||||
|
|
Loading…
Reference in a new issue