Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1241 from mleanos/fix/connected-accounts-not-shown
Browse files Browse the repository at this point in the history
fix(users): Missing primary social provider
  • Loading branch information
mleanos committed Mar 5, 2016
2 parents 049fde9 + f2e18e2 commit 8f00edc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/core/client/css/core.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ a:hover .header-profile-image {
padding-top: 11px !important;
padding-bottom: 11px !important;
}
.user-primary-account {
font-size: 30px;
top: 10px;
right: 10px;
position: absolute;
}
.error-text {
display: none;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<section class="row" ng-controller="SocialAccountsController">
<h3 class="col-md-12 text-center" ng-show="hasConnectedAdditionalSocialAccounts()">Connected social accounts:</h3>
<div class="col-md-12 text-center">
<!-- If the user's provider field (primary) is a social account, show it here -->
<div ng-hide="user.provider === 'local'" class="social-account-container">
<img ng-src="/modules/users/client/img/buttons/{{user.provider}}.png">
<i class="glyphicon glyphicon-check text-success user-primary-account" data-toggle="popover" title="Primary: {{user.provider}}"></i>
</div>
<div ng-repeat="(providerName, providerData) in user.additionalProvidersData" class="social-account-container">
<img ng-src="/modules/users/client/img/buttons/{{providerName}}.png">
<a class="btn btn-danger btn-remove-account" ng-click="removeUserSocialAccount(providerName)">
Expand Down

0 comments on commit 8f00edc

Please sign in to comment.