From 113857a1a091add62c5479bece88d3c243a97098 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 26 Jun 2018 17:20:54 +0200 Subject: deploy bundle --- app/client/common/currentTask.component.js | 8 +++++++- app/client/modules/morph/views/morph.app.js | 6 ++++-- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'app') diff --git a/app/client/common/currentTask.component.js b/app/client/common/currentTask.component.js index 7960e5c..9bb9c0d 100644 --- a/app/client/common/currentTask.component.js +++ b/app/client/common/currentTask.component.js @@ -23,7 +23,13 @@ function CurrentTask ({ cpu, gpu, processor }) { const { activity, epoch, epochs, dataset, module } = task return (
- #{pid}: {module} {activity} {dataset} {epochs} epoch{util.courtesy_s(epochs)} (currently #{epoch}) + #{pid}: {module} {activity} {dataset} + {epochs + ? {epochs} epoch{util.courtesy_s(epochs)} + : ""} + {epoch + ? (currently #{epoch}) + : ""}

{last_message}
diff --git a/app/client/modules/morph/views/morph.app.js b/app/client/modules/morph/views/morph.app.js index 1385e98..fe28659 100644 --- a/app/client/modules/morph/views/morph.app.js +++ b/app/client/modules/morph/views/morph.app.js @@ -13,6 +13,7 @@ import Loading from '../../../common/loading.component' import { Select, Slider, Checkbox, Group, Button, Param, FileList, FileRow, + CurrentTask, } from '../../../common' let yes_count = 0 @@ -53,7 +54,7 @@ class MorphResults extends Component { const totalLength = this.state.frames / 25 let lengthWarning - if ((this.state.steps / this.state.dilate) > 64) { + if ((this.state.steps / this.state.dilate) > 64 && this.state.mode === 'mix') { lengthWarning = (
warning, this will take a while
) @@ -103,7 +104,7 @@ class MorphResults extends Component { title={"Mode"} value={this.state.mode} options={['mix', 'average', 'mix_images']} - onChange={key => this.setState({ mode: key })} + onChange={(name, key) => this.setState({ mode: key })} /> {lengthWarning}
+ -- cgit v1.2.3-70-g09d2