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

Commit f2e18e2

Browse files
committed
fix(users): Missing primary social provider
Adds the User's provider to the list of connect social accounts, when it is also a social account. Fixes: #1032
1 parent 8830cd4 commit f2e18e2

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

modules/core/client/css/core.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ a:hover .header-profile-image {
2626
padding-top: 11px !important;
2727
padding-bottom: 11px !important;
2828
}
29+
.user-primary-account {
30+
font-size: 30px;
31+
top: 10px;
32+
right: 10px;
33+
position: absolute;
34+
}
2935
.error-text {
3036
display: none;
3137
}

modules/users/client/views/settings/manage-social-accounts.client.view.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
<section class="row" ng-controller="SocialAccountsController">
22
<h3 class="col-md-12 text-center" ng-show="hasConnectedAdditionalSocialAccounts()">Connected social accounts:</h3>
33
<div class="col-md-12 text-center">
4+
<!-- If the user's provider field (primary) is a social account, show it here -->
5+
<div ng-hide="user.provider === 'local'" class="social-account-container">
6+
<img ng-src="/modules/users/client/img/buttons/{{user.provider}}.png">
7+
<i class="glyphicon glyphicon-check text-success user-primary-account" data-toggle="popover" title="Primary: {{user.provider}}"></i>
8+
</div>
49
<div ng-repeat="(providerName, providerData) in user.additionalProvidersData" class="social-account-container">
510
<img ng-src="/modules/users/client/img/buttons/{{providerName}}.png">
611
<a class="btn btn-danger btn-remove-account" ng-click="removeUserSocialAccount(providerName)">

0 commit comments

Comments
 (0)