better conditional model training button
@@ -69,12 +69,6 @@ class ModelTrain extends Component {
<Card.Content description={ t('model.settings.ngramLabel') + ' ' + settings.ngram } />
</Card>
- {status !== "trained" &&
- <Segment>
- {trainingButton}
- </Segment>
- }
-
<Message icon>
{ loadingIcon }
<Message.Content>
@@ -82,6 +76,12 @@ class ModelTrain extends Component {
</Message.Content>
</Message>
+ {status === "ready" &&
+ <Segment>
+ {trainingButton}
+ </Segment>
+ }
+
<Button as={Link} to={urls.gui.model.results} disabled={status === 'ready' || status === "training" }>
{ t('common.nextButton') }
</Button>
