[#1394] fix customizationsNotification issue

This commit is contained in:
Tyler Renelle
2013-09-17 14:57:40 -04:00
parent 402e2aedb0
commit 5006cda946
3 changed files with 4 additions and 4 deletions

View File

@@ -86,8 +86,7 @@ angular.module('guideServices', []).
};
$rootScope.$watch('user.flags.customizationsNotification', function(after, before) {
if (alreadyShown(before, after)) return
$('.main-herobox').popover('destroy');
if (alreadyShown(before, after)) return;
showPopover('.main-herobox', 'Customize Your Avatar', "Click your avatar to customize your appearance.", 'bottom');
});

View File

@@ -59,6 +59,7 @@ var UserSchema = new Schema({
filters: {type: Schema.Types.Mixed, 'default': {}},
flags: {
customizationsNotification: {type: Boolean, 'default': false},
showTour: {type: Boolean, 'default': true},
ads: {type: String, 'default': 'show'}, // FIXME make this a boolean, run migration
dropsEnabled: {type: Boolean, 'default': false},

View File

@@ -8,7 +8,7 @@ div(modal='modals.dropsEnabled')
strong {{user.items.eggs.0.text}} egg
| ! {{user.items.eggs.0.notes}}
.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')
.modal-header