summaryrefslogtreecommitdiff
path: root/app/client/modules/biggan/views
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-02-23 17:28:28 +0100
committerJules Laplace <julescarbon@gmail.com>2020-02-23 17:28:28 +0100
commitcd7c34e54bda8b855c433a98199b9f2bde31f3ba (patch)
tree6c01a029955204374d73160a6b351238231cc9a3 /app/client/modules/biggan/views
parentf99fb20806d89109e51995655997b43089e01ead (diff)
deploy bundle
Diffstat (limited to 'app/client/modules/biggan/views')
-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>
)
}