New feature that notifies a user when their group invite is accepted. (#8244)

* New notification feature that notifies a user when their group invite is accepted. fixes #7788

* Updating to a modal instead of a popup notification

* Making a generic modal template and using it for notifications of group invitation acceptance.

* Working with paglias's comments for doing translation server side.

* Final changes based on pr comments.
This commit is contained in:
Travis
2016-12-01 10:04:57 -08:00
committed by Matteo Pagliazzi
parent c42f81b629
commit 6a63f080ad
7 changed files with 76 additions and 2 deletions

View File

@@ -145,7 +145,14 @@ habitrpg.controller('NotificationCtrl',
Notification.showLoginIncentive(User.user, notification.data, Social.loadWidgets);
break;
default:
markAsRead = false; // If the notification is not implemented, skip it
if (notification.data.headerText && notification.data.bodyText) {
var modalScope = $rootScope.$new();
modalScope.data = notification.data;
$rootScope.openModal('generic', {scope: modalScope});
}
else {
markAsRead = false; // If the notification is not implemented, skip it
}
break;
}