mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Track editor modals.
This commit is contained in:
parent
71b8f86e89
commit
304529754d
2 changed files with 4 additions and 2 deletions
|
@ -2,8 +2,10 @@ define [
|
|||
"base"
|
||||
"ace/ace"
|
||||
], (App) ->
|
||||
App.controller "HotkeysController", ($scope, $modal) ->
|
||||
App.controller "HotkeysController", ($scope, $modal, event_tracking) ->
|
||||
$scope.openHotkeysModal = ->
|
||||
event_tracking.send 'ide-open-hotkeys-modal'
|
||||
|
||||
$modal.open {
|
||||
templateUrl: "hotkeysModalTemplate"
|
||||
controller: "HotkeysModalController"
|
||||
|
|
|
@ -3,7 +3,7 @@ define [
|
|||
], (App) ->
|
||||
App.controller "ShareController", ["$scope", "$modal", "event_tracking", ($scope, $modal, event_tracking) ->
|
||||
$scope.openShareProjectModal = () ->
|
||||
event_tracking.send('share-modal-opened')
|
||||
event_tracking.send 'ide-open-share-modal'
|
||||
|
||||
$modal.open(
|
||||
templateUrl: "shareProjectModalTemplate"
|
||||
|
|
Loading…
Reference in a new issue