(js) Fix handling of prevent invitations whitelist

This commit is contained in:
Francis Lachapelle
2015-12-07 11:05:01 -05:00
parent a4bc4fc652
commit ecf297208a
4 changed files with 40 additions and 28 deletions
@@ -49,6 +49,12 @@
}
});
// Set alternate avatar in User service
statePreferences.ready().then(function() {
if (statePreferences.defaults.SOGoAlternateAvatar)
User.$alternateAvatar = statePreferences.defaults.SOGoAlternateAvatar;
});
function go(module) {
$state.go('preferences.' + module);
}