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

Commit

Permalink
fix(users): Missing primary social provider
Browse files Browse the repository at this point in the history
Adds the User's provider to the list of connect social accounts, when it
is also a social account.

Fixes: #1032
  • Loading branch information
mleanos committed Mar 2, 2016
1 parent 8830cd4 commit f2e18e2
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 f2e18e2

Please sign in to comment.