mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 10:13:42 -05:00
Fix event "left-menu-documentation-click" not being fired properly (#11836)
GitOrigin-RevId: 5e9df12c699ff5c25389e8fb90fda73913e8c747
This commit is contained in:
parent
79f7d259e9
commit
47937c4073
3 changed files with 13 additions and 4 deletions
|
@ -237,12 +237,10 @@ aside#left-menu.full-size(
|
|||
new-source-editor="editor.newSourceEditor"
|
||||
)
|
||||
if showSupport
|
||||
li
|
||||
li(ng-controller="LeftMenuDocumentationController")
|
||||
a(
|
||||
href='/learn', target="_blank"
|
||||
event-tracking="left-menu-documentation-click "
|
||||
event-tracking-mb="true"
|
||||
event-tracking-trigger="click"
|
||||
ng-click="sendLeftMenuDocumentationEvent()"
|
||||
)
|
||||
i.fa.fa-book.fa-fw
|
||||
| #{translate('documentation')}
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
import App from '../../../base'
|
||||
|
||||
export default App.controller(
|
||||
'LeftMenuDocumentationController',
|
||||
function ($scope, eventTracking) {
|
||||
$scope.sendLeftMenuDocumentationEvent = () => {
|
||||
eventTracking.sendMB('left-menu-documentation-click')
|
||||
}
|
||||
}
|
||||
)
|
|
@ -4,3 +4,4 @@ import './services/settings'
|
|||
import './controllers/SettingsController'
|
||||
import '../../features/dictionary/controllers/modal-controller'
|
||||
import '../../features/editor-left-menu/controllers/editor-left-menu-controller'
|
||||
import '../../features/editor-left-menu/controllers/left-menu-documentation-controller'
|
||||
|
|
Loading…
Reference in a new issue