meilisearch-admin/app/components/toast/task.hbs

45 lines
1.1 KiB
Handlebars
Raw Normal View History

2022-09-14 11:43:09 +00:00
<Toast
@autoClose={{this.autoClose}}
@onClose={{@onClose}}
@closeIndicatorClass={{this.bg}}
2022-10-12 13:50:39 +00:00
class='bg-base-7'
2022-09-14 11:43:09 +00:00
as |toast|
>
2022-09-14 07:56:45 +00:00
<div class='flex items-center'>
{{#if this.icon}}
<div
class='inline-flex flex-shrink-0 justify-center items-center self-start'
>
2022-09-21 11:26:09 +00:00
<this.icon @spin={{not this.isFulfilled}} class='mr-4 {{this.color}}' />
2022-09-14 07:56:45 +00:00
</div>
{{/if}}
2022-09-14 07:29:58 +00:00
2022-09-14 07:56:45 +00:00
<div>
2022-09-15 11:12:53 +00:00
<div class='mb-2'>Task {{this.taskUid}} {{this.taskType}}</div>
2022-09-14 07:56:45 +00:00
<div class={{if this.task.error 'mb-2'}}>
Status:
<span class={{this.color}}>{{this.taskStatus}}</span>
</div>
{{#if this.task.error}}
Error:
<a
href={{this.task.error.link}}
class='text-danger'
target='_blank'
rel='noopener noreferrer'
>{{this.task.error.message}}</a>
{{/if}}
2022-09-14 07:37:11 +00:00
</div>
2022-09-14 07:29:58 +00:00
2022-09-14 07:56:45 +00:00
<button
type='button'
class='ml-auto self-start'
{{! data-dismiss-target='#toast-default' }}
aria-label='Close'
2022-09-15 07:36:45 +00:00
{{on 'click' toast.invokeOnClose}}
2022-09-14 07:56:45 +00:00
>
<Icons::Close />
</button>
</div>
2022-09-14 07:29:58 +00:00
</Toast>