fix edit user settings
parent
1906abaa1c
commit
e3290adf29
|
@ -91,8 +91,8 @@ UserProfileDirective = ($confirm, $auth, $repo) ->
|
||||||
changeEmail = $scope.user.isAttributeModified("email")
|
changeEmail = $scope.user.isAttributeModified("email")
|
||||||
|
|
||||||
onSuccess = (data) =>
|
onSuccess = (data) =>
|
||||||
user = $model.make_model("users", data)
|
$auth.setUser(data)
|
||||||
$auth.setUser(user)
|
|
||||||
if changeEmail
|
if changeEmail
|
||||||
$confirm.success("<strong>Check your inbox!</strong><br />
|
$confirm.success("<strong>Check your inbox!</strong><br />
|
||||||
We have sent a mail to your account<br />
|
We have sent a mail to your account<br />
|
||||||
|
@ -113,7 +113,7 @@ UserProfileDirective = ($confirm, $auth, $repo) ->
|
||||||
|
|
||||||
return {link:link}
|
return {link:link}
|
||||||
|
|
||||||
module.directive("tgUserProfile", ["$tgConfirm", "$tgAuth", "$tgRepo", UserProfileDirective])
|
module.directive("tgUserProfile", ["$tgConfirm", "$tgAuth", "$tgRepo", UserProfileDirective])
|
||||||
|
|
||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
Loading…
Reference in New Issue