From beea92a74b1f0aa03c3339bb94642297e78bb6ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Thu, 15 Jan 2015 17:58:50 +0100 Subject: [PATCH] FIX: :bug: show email button wasn't working on user's profile page --- app/assets/javascripts/discourse/components/d-button.js.es6 | 2 +- app/assets/javascripts/discourse/templates/user/user.hbs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/components/d-button.js.es6 b/app/assets/javascripts/discourse/components/d-button.js.es6 index fa923a2cae1..29bd2a5f1f4 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 6f54dbfcd66..cd1eecbd7a6 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}}