diff --git a/app/assets/javascripts/discourse/components/d-button.js.es6 b/app/assets/javascripts/discourse/components/d-button.js.es6 index fa923a2ca..29bd2a5f1 100644 --- a/app/assets/javascripts/discourse/components/d-button.js.es6 +++ b/app/assets/javascripts/discourse/components/d-button.js.es6 @@ -26,6 +26,6 @@ export default Ember.Component.extend({ }, click: function() { - this.sendAction(); + this.sendAction("action", this.get("actionParam")); } }); diff --git a/app/assets/javascripts/discourse/templates/user/user.hbs b/app/assets/javascripts/discourse/templates/user/user.hbs index 6f54dbfcd..cd1eecbd7 100644 --- a/app/assets/javascripts/discourse/templates/user/user.hbs +++ b/app/assets/javascripts/discourse/templates/user/user.hbs @@ -117,7 +117,7 @@ {{#if email}} {{email}} {{else}} - {{d-button action="checkEmail" icon="envelope-o" label="admin.users.check_email.text" class="btn-primary"}} + {{d-button action="checkEmail" actionParam=model icon="envelope-o" label="admin.users.check_email.text" class="btn-primary"}} {{/if}} {{/if}}