mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
[#1394] fix customizationsNotification issue
This commit is contained in:
@@ -86,8 +86,7 @@ angular.module('guideServices', []).
|
|||||||
};
|
};
|
||||||
|
|
||||||
$rootScope.$watch('user.flags.customizationsNotification', function(after, before) {
|
$rootScope.$watch('user.flags.customizationsNotification', function(after, before) {
|
||||||
if (alreadyShown(before, after)) return
|
if (alreadyShown(before, after)) return;
|
||||||
$('.main-herobox').popover('destroy');
|
|
||||||
showPopover('.main-herobox', 'Customize Your Avatar', "Click your avatar to customize your appearance.", 'bottom');
|
showPopover('.main-herobox', 'Customize Your Avatar', "Click your avatar to customize your appearance.", 'bottom');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ var UserSchema = new Schema({
|
|||||||
filters: {type: Schema.Types.Mixed, 'default': {}},
|
filters: {type: Schema.Types.Mixed, 'default': {}},
|
||||||
|
|
||||||
flags: {
|
flags: {
|
||||||
|
customizationsNotification: {type: Boolean, 'default': false},
|
||||||
showTour: {type: Boolean, 'default': true},
|
showTour: {type: Boolean, 'default': true},
|
||||||
ads: {type: String, 'default': 'show'}, // FIXME make this a boolean, run migration
|
ads: {type: String, 'default': 'show'}, // FIXME make this a boolean, run migration
|
||||||
dropsEnabled: {type: Boolean, 'default': false},
|
dropsEnabled: {type: Boolean, 'default': false},
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ div(modal='modals.dropsEnabled')
|
|||||||
p
|
p
|
||||||
span.item-drop-icon(class='Pet_Egg_{{user.items.eggs.0.name}}')
|
span.item-drop-icon(class='Pet_Egg_{{user.items.eggs.0.name}}')
|
||||||
| You've unlocked the Drop System! Now when you complete tasks, you have a small chance of finding an item. And guess what, you just found a
|
| You've unlocked the Drop System! Now when you complete tasks, you have a small chance of finding an item. And guess what, you just found a
|
||||||
strong {{user.items.eggs.0.text}} egg
|
strong {{user.items.eggs.0.text}} egg
|
||||||
| ! {{user.items.eggs.0.notes}}
|
| ! {{user.items.eggs.0.notes}}
|
||||||
.modal-footer
|
.modal-footer
|
||||||
button.btn.btn-default.cancel(ng-click='modals.pets.dropsEnabled=false') Close
|
button.btn.btn-default.cancel(ng-click='modals.dropsEnabled = false') Close
|
||||||
|
|
||||||
div(modal='modals.drop')
|
div(modal='modals.drop')
|
||||||
.modal-header
|
.modal-header
|
||||||
|
|||||||
Reference in New Issue
Block a user