37 lines
893 B
Handlebars
Raw Normal View History

2019-08-31 20:51:14 -07:00
<div
class="notifications__toast__content notifications__toast__content--{{@toast.props.type}}"
>
<p class="notifications__toast__content__msg">
{{#if hasBlock}}
{{yield
(hash
content=@toast.props.content
)
}}
{{else}}
{{split-text @toast.props.content this.maxToastCharLength}}
{{/if}}
</p>
{{#if (and (not hasBlock) (gt @toast.props.content.length this.maxToastCharLength))}}
<button
type="button"
2019-08-31 20:51:14 -07:00
class="nacho-button nacho-button--tertiary notifications__toast__content-detail"
onclick={{action @onShowDetail}}
>
See Detail
</button>
{{/if}}
</div>
<button
type="button"
2019-08-31 20:51:14 -07:00
class="notifications__toast__dismiss"
onclick={{action @onDismiss}}
>
{{#if @toast.props.dismissButtonText}}
<span class="sr-only">{{@toast.props.dismissButtonText}}</span>
{{/if}}
&times;
</button>