diff --git a/app/assets/javascripts/discourse/app/templates/components/d-button.hbs b/app/assets/javascripts/discourse/app/templates/components/d-button.hbs index 10d12b4d836..5771625740a 100644 --- a/app/assets/javascripts/discourse/app/templates/components/d-button.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/d-button.hbs @@ -1,17 +1,17 @@ {{#if icon}} {{#if isLoading}} - {{d-icon "spinner" class="loading-icon"}} + {{~d-icon "spinner" class="loading-icon"~}} {{else}} - {{d-icon icon}} + {{~d-icon icon~}} {{/if}} {{else}} {{#if isLoading}} - {{d-icon "spinner" class="loading-icon"}} + {{~d-icon "spinner" class="loading-icon"~}} {{/if}} {{/if}} -{{#if computedLabel}} +{{~#if computedLabel~}} {{html-safe computedLabel}}{{#if ellipsis}}…{{/if}} -{{/if}} +{{~/if~}} {{yield}}