Skip to content

Commit

Permalink
fix: inject webengage service
Browse files Browse the repository at this point in the history
  • Loading branch information
vdvibhu20 committed Dec 27, 2021
1 parent 9cdfb48 commit 9b32360
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/pods/components/jobs/job-view/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default class JobViewComponent extends Component {
@service currentUser
@service router
@service store
@service webengage

showTakeTestModal = false
showApplyToJobModal = false
Expand Down Expand Up @@ -50,7 +51,7 @@ export default class JobViewComponent extends Component {
yield jobApplication.save()
this.set('jobApplication', jobApplication)
this.set('showApplyToJobModal', false)
this.webengage.track("Hire: Apply To Job", {})
this.webengage.trackEvent("Hire: Apply To Job", {})
} catch (err) {

if (err.errors[0].title == 'Not eligible for this Job') {
Expand All @@ -62,7 +63,7 @@ export default class JobViewComponent extends Component {

@action
takeToProfileEditor(step = 3) {
this.webengage.track("Complete Profile and Apply", {})
this.webengage.trackEvent("Complete Profile and Apply", {})
this.router.transitionTo('applicants.profile.me', { queryParams: { job_id: this.job.id, step } })
}

Expand Down

0 comments on commit 9b32360

Please sign in to comment.