FIX: replaces inline button message with d-button

FIX: replaces inline button message with d-button

diff --git a/app/assets/javascripts/discourse/templates/user.hbs b/app/assets/javascripts/discourse/templates/user.hbs
index f7f8efb..0376714 100644
--- a/app/assets/javascripts/discourse/templates/user.hbs
+++ b/app/assets/javascripts/discourse/templates/user.hbs
@@ -44,10 +44,10 @@
             <ul>
               {{#if model.can_send_private_message_to_user}}
               <li>
-                {{#d-button class="btn btn-primary compose-pm" action=(route-action "composePrivateMessage" model)}}
-                  {{d-icon "envelope"}}
-                  {{i18n "user.private_message"}}
-                {{/d-button}}
+                {{d-button class="btn btn-primary compose-pm"
+                  action=(route-action "composePrivateMessage" model)
+                  icon="envelope"
+                  label="user.private_message"}}
               </li>
               {{/if}}
               {{#if currentUser.staff}}

GitHub sha: b1297a5f

1 Like