mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Change userLevelStyle to a root scope so it can be used in modals.
This commit is contained in:
@@ -49,7 +49,7 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$
|
||||
}
|
||||
|
||||
// styling helpers
|
||||
$scope.userLevelStyle = function(user,style){
|
||||
$rootScope.userLevelStyle = function(user,style){
|
||||
style = style || '';
|
||||
var npc = (user && user.backer && user.backer.npc) ? user.backer.npc : '';
|
||||
var level = (user && user.contributor && user.contributor.level) ? user.contributor.level : '';
|
||||
|
||||
Reference in New Issue
Block a user