mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
fix(warnings): Show modal only once
Also removes a random extra newline.
This commit is contained in:
4
common/locales/en/faq.json
Normal file
4
common/locales/en/faq.json
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"wiki": "Wiki"
|
||||||
|
}
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@ habitrpg.controller("UserCtrl", ['$rootScope', '$scope', '$location', 'User', '$
|
|||||||
}
|
}
|
||||||
|
|
||||||
$scope.acknowledgeHealthWarning = function(){
|
$scope.acknowledgeHealthWarning = function(){
|
||||||
User.user.ops.update && User.set({'flags.warnedLowHealth':false});
|
User.user.ops.update && User.set({'flags.warnedLowHealth':true});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -26,4 +26,3 @@ script(type='text/ng-template', id='modals/lowHealth.html')
|
|||||||
h4=env.t('goodLuck')
|
h4=env.t('goodLuck')
|
||||||
.modal-footer(style='margin-top: 0em')
|
.modal-footer(style='margin-top: 0em')
|
||||||
a.btn.btn-primary(ng-click='acknowledgeHealthWarning(); $close()')=env.t('ok')
|
a.btn.btn-primary(ng-click='acknowledgeHealthWarning(); $close()')=env.t('ok')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user