diff --git a/services/web/public/coffee/ide/track-changes/TrackChangesManager.coffee b/services/web/public/coffee/ide/track-changes/TrackChangesManager.coffee index 270c69bc6a..5270754db7 100644 --- a/services/web/public/coffee/ide/track-changes/TrackChangesManager.coffee +++ b/services/web/public/coffee/ide/track-changes/TrackChangesManager.coffee @@ -119,7 +119,6 @@ define [ diff.deleted = true restoreDeletedDoc: (doc) -> - console.log("track-changes-restore-deleted") url = "/project/#{@$scope.project_id}/doc/#{doc.id}/restore" @ide.$http.post(url, name: doc.name, _csrf: window.csrfToken) diff --git a/services/web/public/coffee/ide/track-changes/controllers/TrackChangesDiffController.coffee b/services/web/public/coffee/ide/track-changes/controllers/TrackChangesDiffController.coffee index 7e9354b887..94044f8956 100644 --- a/services/web/public/coffee/ide/track-changes/controllers/TrackChangesDiffController.coffee +++ b/services/web/public/coffee/ide/track-changes/controllers/TrackChangesDiffController.coffee @@ -1,14 +1,15 @@ define [ "base" ], (App) -> - App.controller "TrackChangesDiffController", ($scope, $modal, ide) -> + App.controller "TrackChangesDiffController", ($scope, $modal, ide, event_tracking) -> $scope.restoreDeletedDoc = () -> + event_tracking.sendCountly "track-changes-restore-deleted" ide.trackChangesManager.restoreDeletedDoc( $scope.trackChanges.diff.doc ) $scope.openRestoreDiffModal = () -> - console.log("track-changes-restore-modal") + event_tracking.sendCountly "track-changes-restore-modal" $modal.open { templateUrl: "trackChangesRestoreDiffModalTemplate" controller: "TrackChangesRestoreDiffModalController" @@ -16,14 +17,14 @@ define [ diff: () -> $scope.trackChanges.diff } - App.controller "TrackChangesRestoreDiffModalController", ($scope, $modalInstance, diff, ide) -> + App.controller "TrackChangesRestoreDiffModalController", ($scope, $modalInstance, diff, ide, event_tracking) -> $scope.state = inflight: false $scope.diff = diff $scope.restore = () -> - console.log("track-changes-restored") + event_tracking.sendCountly "track-changes-restored" $scope.state.inflight = true ide.trackChangesManager .restoreDiff(diff) diff --git a/services/web/public/coffee/ide/track-changes/controllers/TrackChangesListController.coffee b/services/web/public/coffee/ide/track-changes/controllers/TrackChangesListController.coffee index 1b85035b28..88ab0053ed 100644 --- a/services/web/public/coffee/ide/track-changes/controllers/TrackChangesListController.coffee +++ b/services/web/public/coffee/ide/track-changes/controllers/TrackChangesListController.coffee @@ -2,7 +2,7 @@ define [ "base" ], (App) -> - App.controller "TrackChangesPremiumPopup", ($scope, ide, sixpack)-> + App.controller "TrackChangesPremiumPopup", ($scope, ide, sixpack, event_tracking)-> $scope.$watch "ui.view", -> if $scope.ui.view == "track-changes" if $scope.project?.features?.versioning @@ -92,7 +92,7 @@ define [ $scope.recalculateSelectedUpdates() $scope.select = () -> - console.log("track-changes-view") + event_tracking.sendCountly "track-changes-view-change" $scope.update.selectedTo = true $scope.update.selectedFrom = true