mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
add streak achievement notification
This commit is contained in:
@@ -32,6 +32,11 @@ habitrpg.controller('NotificationCtrl',
|
||||
$rootScope.modals.drop = true;
|
||||
});
|
||||
|
||||
$rootScope.$watch('user.achievements.streak', function(after, before){
|
||||
if(after == before || after < before) return;
|
||||
$rootScope.modals.achievements.streak = true;
|
||||
});
|
||||
|
||||
// FIXME: this isn't working for some reason
|
||||
/*_.each(['weapon', 'head', 'chest', 'shield'], function(watched){
|
||||
$rootScope.$watch('user.items.' + watched, function(before, after){
|
||||
|
||||
Reference in New Issue
Block a user