FIX: DButton ellipsis argument (#19640)

This regressed in a8890295
This commit is contained in:
David Taylor 2022-12-28 14:03:58 +00:00 committed by GitHub
parent 9f0a095405
commit f68d6cd6cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -32,7 +32,7 @@
{{~#if this.computedLabel~}}
<span class="d-button-label">
{{~html-safe this.computedLabel~}}
{{~#if this.ellipsis~}}
{{~#if @ellipsis~}}
&hellip;
{{~/if~}}
</span>

View File

@ -312,4 +312,10 @@ module("Integration | Component | d-button", function (hooks) {
assert.strictEqual(this.foo, "bar");
});
test("ellipses", async function (assert) {
await render(hbs`<DButton @translatedLabel="test label" @ellipsis=true />`);
assert.dom(".d-button-label").hasText("test label…");
});
});