From b7791572bfa33a1ebce5ad807719e84ba6c5b4e6 Mon Sep 17 00:00:00 2001 From: Stanislav Romanov Date: Wed, 14 Sep 2022 14:43:09 +0300 Subject: [PATCH] Small fixes --- app/components/task-toast.hbs | 9 +++++++-- app/components/task-toast.js | 5 ++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/app/components/task-toast.hbs b/app/components/task-toast.hbs index f21b865..71c4812 100644 --- a/app/components/task-toast.hbs +++ b/app/components/task-toast.hbs @@ -1,4 +1,9 @@ - +
{{#if this.icon}}
-
Task {{this.taskType}} Uid:{{this.taskUid}}
+
Task {{this.taskType}} uid:{{this.taskUid}}
Status: {{this.taskStatus}} diff --git a/app/components/task-toast.js b/app/components/task-toast.js index ff3a782..3a2c86b 100644 --- a/app/components/task-toast.js +++ b/app/components/task-toast.js @@ -99,8 +99,11 @@ export default class TaskToastComponent extends Component { this.meilisearch.getTask(this.taskUid).then((task) => { this.task = task; - if (this.isSucceeded) { + if (!this.isEnqueued) { this.clearInterval(); + } + + if (this.isSucceeded) { this.autoClose = true; } });