Modifies the dialog css class loading and allows for left side modals

This commit is contained in:
Per Ploug Krogslund
2013-07-05 10:48:12 +02:00
parent d9e79666ca
commit 0a08dce8f5
13 changed files with 117 additions and 12 deletions

View File

@@ -12,6 +12,8 @@ angular.module('umbraco.services')
$q.when(authResource.isAuthenticated())
.then(function(data) {
currentUser = data;
currentUser.avatar = 'http://www.gravatar.com/avatar/' + data.emailHash + '?s=40';
//note, this can return null if they are not authenticated
deferred.resolve({ user: data, authenticated: data == null ? false : true });
},