Skip to content

Commit

Permalink
v1.4.3
Browse files Browse the repository at this point in the history
fix(archive): do not show restart button on live video and chat tasks
  • Loading branch information
TheFrodo committed Sep 1, 2023
1 parent 68945e6 commit 6ef360e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
16 changes: 9 additions & 7 deletions src/components/Queue/ChatTimeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,15 @@ const QueueChatTimeline = ({ queue }: Object) => {
>
logs
</span>
<span>{" - "}</span>
<span
className={classes.restartText}
onClick={() => restartTask("chat_download")}
>
restart
</span>
{!queue.live_archive && (
<span><span>{" - "}</span>
<span
className={classes.restartText}
onClick={() => restartTask("chat_download")}
>
restart
</span></span>
)}
</Text>
</Timeline.Item>

Expand Down
17 changes: 10 additions & 7 deletions src/components/Queue/VideoTimeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,16 @@ const QueueVideoTimeline = ({ queue }: Object) => {
>
logs
</span>
<span>{" - "}</span>
<span
className={classes.restartText}
onClick={() => restartTask("video_download")}
>
restart
</span>
{!queue.live_archive && (
<span><span>{" - "}</span>
<span
className={classes.restartText}
onClick={() => restartTask("video_download")}
>
restart
</span></span>
)}

</Text>
</Timeline.Item>

Expand Down

0 comments on commit 6ef360e

Please sign in to comment.