Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. if (params['sfid'] === 'potential_engagements') {
  2. this.engagementService.potentialEngagements = true;
  3. this.engagementService
  4. .potentialsGraph()
  5. .then(animate => {
  6. this.graph = new EngagementGraph(d3.select('.Engagement-GraphSVG'));
  7. this.track();
  8. this.engagementService.isGraph = true;
  9. this.engagementService
  10. .getAllProducts()
  11. .then(() => this.downloading = false)
  12. .catch(err => this.pdfError = true)
  13. this.findForumContact();
  14. this.updateDateLabel();
  15. this.addMemberPicture();
  16. this.setup(animate);
  17. })
  18. .catch(error => this.handleError(error));
  19. } else {
  20. this.engagementService
  21. .graph(params['sfid'])
  22. .then(animate => {
  23. this.graph = new EngagementGraph(d3.select('.Engagement-GraphSVG'));
  24. this.track();
  25. this.engagementService.isGraph = true;
  26. this.engagementService
  27. .getAllProducts()
  28. .then(() => this.downloading = false)
  29. .catch(err => this.pdfError = true)
  30. this.findForumContact();
  31. this.updateDateLabel();
  32. this.addMemberPicture();
  33. this.setup(animate);
  34. })
  35. .catch(error => this.handleError(error));
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement