diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-01-17 21:01:17 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-01-17 21:01:17 +0100 |
| commit | b7f1e7f1dfb55cfe8f95df0012fcfa86910c6e09 (patch) | |
| tree | 8f9ef831c5f2fd123b047203d6ce44ff4e289c8d /app | |
| parent | 05a112fdb6dee11466ae3e3b2643cfa29f0c0b42 (diff) | |
another way of stopping
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> ) |
