meilisearch-admin/app/components/toast.hbs
Stanislav Romanov 8c7e93db4d Clear code
2022-09-13 17:22:00 +03:00

27 lines
654 B
Handlebars

{{#in-element this.toasts.destinationElement insertBefore=null}}
<div
class='flex items-center p-4 w-full max-w-xs border rounded shadow-sm'
role='alert'
{{did-insert this.registerInPlate}}
>
<div
class='inline-flex flex-shrink-0 justify-center items-center self-start'
>
<Icons::Loading @spin={{true}} class='mr-4' />
</div>
<div>
{{@text}}
</div>
<button
type='button'
class='ml-auto self-start'
{{! data-dismiss-target='#toast-default' }}
aria-label='Close'
{{on 'click' this.triggerOnClose}}
>
<Icons::Close />
</button>
</div>
{{/in-element}}