Show Email Addresses when Searching
Its hard to tell users apart when they have the same name, to help users distinguish who is who when searching, this patch enables the search helper to show both the name and email. Change-Id: I8f783f7674a47b789636245c785cb9a9a26c4370 Story: 2000132 Task: 24370
This commit is contained in:
parent
e7b10dbb39
commit
8caf5fced6
@ -67,7 +67,8 @@ angular.module('sb.search').factory('SearchHelper',
|
||||
criteria.push(
|
||||
Criteria.create('User',
|
||||
params.assignee_id,
|
||||
result.full_name)
|
||||
result.full_name + ' <'
|
||||
+ result.email + '>')
|
||||
);
|
||||
}
|
||||
);
|
||||
|
@ -1,4 +1,6 @@
|
||||
<td>{{user.full_name}}</td>
|
||||
<td><{{user.email}}></td>
|
||||
|
||||
<td class="text-right">
|
||||
<span class="text-muted">Last Login:</span>
|
||||
{{user.last_login | date: 'mediumDate'}}
|
||||
|
@ -91,7 +91,7 @@
|
||||
<i class="fa fa-refresh fa-spin"></i>
|
||||
</span>
|
||||
<span ng-show="creator.full_name">
|
||||
{{creator.full_name}}
|
||||
{{creator.full_name}} <{{creator.email}}>
|
||||
</span>
|
||||
<br/>
|
||||
<strong>Last updated:</strong>
|
||||
|
@ -144,7 +144,7 @@ angular.module('sb.util').directive('userTypeahead',
|
||||
*/
|
||||
$scope.formatUserName = function (model) {
|
||||
if (!!model) {
|
||||
return model.full_name;
|
||||
return model.full_name + ' <' + model.email + '>';
|
||||
}
|
||||
return '';
|
||||
};
|
||||
|
@ -8,7 +8,8 @@
|
||||
ng-if="user && !user.$resolved"></i>
|
||||
|
||||
|
||||
<span ng-if="user && enabled">{{user.full_name}}</span>
|
||||
<span ng-if="user && enabled">{{user.full_name}}
|
||||
<{{user.email}}> </span>
|
||||
|
||||
|
||||
<a href=""
|
||||
@ -48,7 +49,7 @@
|
||||
ng-keypress="handleEnterKey($event)"
|
||||
typeahead-editable="false"
|
||||
typeahead-wait-ms="200"
|
||||
typeahead="user as user.full_name for user in searchUsers($viewValue)"
|
||||
typeahead="user as formatUserName(user) + ' <' + user.email + '>' + for user in searchUsers($viewValue)"
|
||||
typeahead-loading="loadingUsers"
|
||||
typeahead-input-formatter="formatUserName($model)"
|
||||
typeahead-on-select="updateViewValue($model.id);"
|
||||
|
Loading…
Reference in New Issue
Block a user