WIP(warning-modal): Low health warning

This commit is contained in:
Sabe Jones
2015-08-18 16:05:48 -04:00
parent 120550666d
commit 12b0361d45
6 changed files with 37 additions and 3 deletions

View File

@@ -43,6 +43,10 @@ habitrpg.controller("UserCtrl", ['$rootScope', '$scope', '$location', 'User', '$
$scope._editing.profile = false;
}
$scope.acknowledgeHealthWarning = function(){
User.user.ops.update && User.set({'flags.warnedLowHealth':false});
}
/**
* For gem-unlockable preferences, (a) if owned, select preference (b) else, purchase
* @param path: User.preferences <-> User.purchased maps like User.preferences.skin=abc <-> User.purchased.skin.abc.