Skip to content

Commit

Permalink
Add paused state for device view status
Browse files Browse the repository at this point in the history
  • Loading branch information
YeonV committed Dec 31, 2024
1 parent e7aa88c commit 27dd882
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/pages/Device/Effects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ const EffectsCard = ({ virtId }: { virtId: string }) => {

const running = virtual && virtual.effect && virtual.effect.type

const paused = virtual && !virtual.active

return (
<>
<Card
Expand All @@ -228,11 +230,13 @@ const EffectsCard = ({ virtId }: { virtId: string }) => {
}}
>
<Typography variant="body2" color="textDisabled" m={0} mb={1}>
{running
? 'Running'
: streaming
? 'Streaming from ' + actives?.join(', ')
: 'Not active'}
{paused
? 'Paused'
: running
? 'Running'
: streaming
? 'Streaming from ' + actives?.join(', ')
: 'Not active'}
</Typography>
<h1 style={{ margin: 0 }}>{virtual && virtual.config.name}</h1>
<div
Expand Down

0 comments on commit 27dd882

Please sign in to comment.