Use contributor's display name for proposal list

This commit is contained in:
2017-06-07 12:45:30 +02:00
parent c98a50cd42
commit 33072900e9
+2 -2
View File
@@ -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;