FIX: grant badge dialog not working
This commit is contained in:
parent
c20b3b85f9
commit
feed822c48
|
@ -86,7 +86,7 @@ export default Ember.ArrayController.extend({
|
||||||
**/
|
**/
|
||||||
grantBadge: function(badgeId) {
|
grantBadge: function(badgeId) {
|
||||||
var self = this;
|
var self = this;
|
||||||
Discourse.UserBadge.grant(badgeId, this.get('user.username'), this.get('badgeReason')).then(function(userBadge) {
|
Discourse.UserBadge.grant(badgeId, this.get('user.model.username'), this.get('badgeReason')).then(function(userBadge) {
|
||||||
self.set('badgeReason', '');
|
self.set('badgeReason', '');
|
||||||
self.pushObject(userBadge);
|
self.pushObject(userBadge);
|
||||||
Ember.run.next(function() {
|
Ember.run.next(function() {
|
||||||
|
|
Loading…
Reference in New Issue