mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-04 13:09:41 +00:00
fix to toggle helm
This commit is contained in:
parent
c9f3d3029c
commit
0b34b41bbe
3 changed files with 5 additions and 2 deletions
|
|
@ -6,4 +6,7 @@ habitrpg.controller("UserAvatarCtrl", ['$scope', '$location', 'User',
|
|||
$scope.hideUserAvatar = function() {
|
||||
$(".userAvatar").hide();
|
||||
};
|
||||
$scope.toggleHelm = function(val){
|
||||
User.log({op:'set', data:{'preferences.showHelm':val}});
|
||||
}
|
||||
}]);
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
button.m_head_0.customize-option(type='button', ng-click='set("preferences.gender","m")')
|
||||
button.f_head_0.customize-option(type='button', ng-click='set("preferences.gender","f")')
|
||||
label.checkbox
|
||||
input(type='checkbox', checked='{{user.preferences.showHelm}}')
|
||||
input(type='checkbox', ng-model='user.preferences.showHelm', ng-change='toggleHelm(user.preferences.showHelm)')
|
||||
| Show Helm
|
||||
// hair
|
||||
li.customize-menu
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ block vars
|
|||
- var layoutEnv = env
|
||||
|
||||
block title
|
||||
title HabitRPG | Gamify Your Life
|
||||
title HabitRPG | Gamify Your Life
|
||||
|
||||
block content
|
||||
div(ng-app='habitrpg')
|
||||
|
|
|
|||
Loading…
Reference in a new issue