mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user