mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +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
|
// styling helpers
|
||||||
$scope.userLevelStyle = function(user,style){
|
$rootScope.userLevelStyle = function(user,style){
|
||||||
style = style || '';
|
style = style || '';
|
||||||
var npc = (user && user.backer && user.backer.npc) ? user.backer.npc : '';
|
var npc = (user && user.backer && user.backer.npc) ? user.backer.npc : '';
|
||||||
var level = (user && user.contributor && user.contributor.level) ? user.contributor.level : '';
|
var level = (user && user.contributor && user.contributor.level) ? user.contributor.level : '';
|
||||||
|
|||||||
Reference in New Issue
Block a user