summaryrefslogtreecommitdiff
path: root/app/client/modules/biggan
diff options
context:
space:
mode:
Diffstat (limited to 'app/client/modules/biggan')
-rw-r--r--app/client/modules/biggan/views/biggan.live.js16
1 files changed, 12 insertions, 4 deletions
diff --git a/app/client/modules/biggan/views/biggan.live.js b/app/client/modules/biggan/views/biggan.live.js
index c6c8445..51e7646 100644
--- a/app/client/modules/biggan/views/biggan.live.js
+++ b/app/client/modules/biggan/views/biggan.live.js
@@ -203,10 +203,18 @@ class BigGANLive extends Component {
title={i18n.gpu.busy}
onClick={() => this.stop()}
>{i18n.gpu.stop}</Button>
- <Button
- title={opt.paused ? 'Paused' : 'Playing'}
- onClick={() => { opt.paused ? this.play() : this.pause()}}
- >{opt.paused ? 'Play' : 'Pause'}</Button>
+ {opt.paused
+ ?
+ <Button
+ title={'Paused'}
+ onClick={() => this.play()}
+ >{'Play'}</Button>
+ :
+ <Button
+ title={'Playing'}
+ onClick={() => this.pause()}
+ >{'Pause'}</Button>
+ }
</div>
)
}