Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
Merge ac5073b into 9ae11d4
Browse files Browse the repository at this point in the history
  • Loading branch information
Doug-Reed committed Sep 28, 2017
2 parents 9ae11d4 + ac5073b commit bf75a47
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions components/portal/messages/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,11 @@ define(['angular'], function(angular) {
// Call service to save results
messagesService.setMessagesSeen(allSeenMessageIds,
seenAnnouncementIds, 'dismiss');
miscService.pushGAEvent('mascot', 'dismissed', id);
};

vm.moreInfoButton = function(actionButton) {
miscService.pushGAEvent('mascot', 'more info', actionButton.url);
};

vm.takeButtonAction = function(actionButton) {
Expand All @@ -573,6 +578,8 @@ define(['angular'], function(angular) {
actionType = addToHome;
}

miscService.pushGAEvent('mascot', actionType, actionButton.url);

if (actionType == addToHome) {
var slash = url.lastIndexOf('/') + 1;
var fName = url.substr(slash);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
<md-button class="md-default"
ng-if="announcement.moreInfoButton"
aria-label="{{announcement.titleShort}}"
ng-click="vm.moreInfoButton(announcement.moreInfoButton)""
ng-href="{{ announcement.moreInfoButton.url }}"
target="_blank"
rel="noopener noreferrer">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
<md-button class="md-raised md-accent"
ng-show="notification.actionButton"
ng-href="{{ notification.actionButton.url }}"
ng-click="vm.pushGAEvent('Notification', 'Action button bell', notification.id);""
target="_blank"
rel="noopener noreferrer">
{{ notification.actionButton.label }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<div ng-if="notification.moreInfoButton" class="notification-buttons" layout-xs="column" layout-align-xs="center start">
<md-button class="md-raised md-default"
ng-href="{{ notification.moreInfoButton.url }}"
ng-click="pushGAEvent('notifcations page', 'more info', notification.moreInfoButton.url)"
target="_blank"
rel="noopener noreferrer">
{{ notification.moreInfoButton.label }}
Expand Down

0 comments on commit bf75a47

Please sign in to comment.