diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/client/modules/biggan/views/biggan.live.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/app/client/modules/biggan/views/biggan.live.js b/app/client/modules/biggan/views/biggan.live.js index 25d512d..18a1064 100644 --- a/app/client/modules/biggan/views/biggan.live.js +++ b/app/client/modules/biggan/views/biggan.live.js @@ -32,6 +32,9 @@ class BigGANLive extends Component { interrupt(){ this.props.actions.queue.stop_task('gpu') } + stop() { + actions.live.send_command('stop', '') + } render() { const { biggan, actions, last_message } = this.props // console.log(actions) @@ -170,7 +173,7 @@ class BigGANLive extends Component { return ( <Button title={i18n.gpu.busy} - onClick={() => this.interrupt()} + onClick={() => this.stop()} >{i18n.gpu.interrupt}</Button> ) } @@ -183,7 +186,7 @@ class BigGANLive extends Component { // >{i18n.gpu.restart}</Button> // <Button // title={i18n.gpu.busy} - // onClick={() => this.interrupt()} + // onClick={() => this.stop()} // >{i18n.gpu.interrupt}</Button> // </div> // ) @@ -192,7 +195,7 @@ class BigGANLive extends Component { <div> <Button title={i18n.gpu.busy} - onClick={() => this.interrupt()} + onClick={() => this.stop()} >{i18n.gpu.stop}</Button> </div> ) |
