FIX: btn class was duplicated on admin-menu-buttons (#7555)

FIX: btn class was duplicated on admin-menu-buttons (#7555)

diff --git a/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6 b/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6
index 15d9781..466cd7a 100644
--- a/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6
+++ b/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6
@@ -3,9 +3,9 @@ import { h } from "virtual-dom";
 
 createWidget("admin-menu-button", {
   html(attrs) {
-    let className = "btn";
+    let className;
     if (attrs.buttonClass) {
-      className += " " + attrs.buttonClass;
+      className = attrs.buttonClass;
     }
 
     return h(

GitHub sha: 244c0357

1 Like