mirror of
https://github.com/discourse/discourse.git
synced 2025-06-07 08:06:56 +08:00
@ -32,7 +32,7 @@
|
||||
{{~#if this.computedLabel~}}
|
||||
<span class="d-button-label">
|
||||
{{~html-safe this.computedLabel~}}
|
||||
{{~#if this.ellipsis~}}
|
||||
{{~#if @ellipsis~}}
|
||||
…
|
||||
{{~/if~}}
|
||||
</span>
|
||||
|
@ -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…");
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user