Use contributor's display name for proposal list
This commit is contained in:
@@ -23,7 +23,7 @@ export default Ember.Controller.extend({
|
|||||||
let proposals = this.get('model.proposals')
|
let proposals = this.get('model.proposals')
|
||||||
.filterBy('executed', false)
|
.filterBy('executed', false)
|
||||||
.map(p => {
|
.map(p => {
|
||||||
p.set('recipientName', this.findContributorByAddress(p.get('recipientAddress')).github_username);
|
p.set('recipientName', this.findContributorByAddress(p.get('recipientAddress')).name);
|
||||||
return p;
|
return p;
|
||||||
});
|
});
|
||||||
return proposals;
|
return proposals;
|
||||||
@@ -33,7 +33,7 @@ export default Ember.Controller.extend({
|
|||||||
let proposals = this.get('model.proposals')
|
let proposals = this.get('model.proposals')
|
||||||
.filterBy('executed', true)
|
.filterBy('executed', true)
|
||||||
.map(p => {
|
.map(p => {
|
||||||
p.set('recipientName', this.findContributorByAddress(p.get('recipientAddress')).github_username);
|
p.set('recipientName', this.findContributorByAddress(p.get('recipientAddress')).name);
|
||||||
return p;
|
return p;
|
||||||
});
|
});
|
||||||
return proposals;
|
return proposals;
|
||||||
|
|||||||
Reference in New Issue
Block a user