mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
feat(analytics): Track low health modal
This commit is contained in:
@@ -9,7 +9,7 @@ habitrpg.controller('NotificationCtrl',
|
|||||||
$rootScope.playSound('Death');
|
$rootScope.playSound('Death');
|
||||||
$rootScope.openModal('death', {keyboard:false, backdrop:'static'});
|
$rootScope.openModal('death', {keyboard:false, backdrop:'static'});
|
||||||
} else if (after <= 30 && !User.user.flags.warnedLowHealth) {
|
} else if (after <= 30 && !User.user.flags.warnedLowHealth) {
|
||||||
$rootScope.openModal('lowHealth', {keyboard:false, backdrop:'static', controller:'UserCtrl'});
|
$rootScope.openModal('lowHealth', {keyboard:false, backdrop:'static', controller:'UserCtrl', track:'Health Warning'});
|
||||||
}
|
}
|
||||||
if (after == before) return;
|
if (after == before) return;
|
||||||
if (User.user.stats.lvl == 0) return;
|
if (User.user.stats.lvl == 0) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user