Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[i18n] Translate ML - New Job(part_1) #25647

Merged
merged 71 commits into from
Dec 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
c7ec189
Merge pull request #1 from elastic/master
Nox911 Sep 24, 2018
fa01b88
Merge pull request #2 from elastic/master
Nox911 Sep 27, 2018
70f6c7e
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Sep 27, 2018
68587a0
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Sep 28, 2018
42aa7d3
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 2, 2018
efeaefe
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 2, 2018
8a054ed
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 8, 2018
b0d1660
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 16, 2018
62b6ad1
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 17, 2018
acbad4b
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 18, 2018
a850650
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 22, 2018
0a200ce
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 25, 2018
b2a8244
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 29, 2018
b4b979e
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 30, 2018
d349a4f
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 31, 2018
ae285b9
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 2, 2018
3051641
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 5, 2018
6231971
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 8, 2018
f86a3d4
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 9, 2018
cf813c7
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 13, 2018
fa62520
Translate ml -> new_job(part_1)
Nox911 Nov 14, 2018
1aba03f
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 14, 2018
15ce2cc
Merge branch 'master' into feature/translate-ml-new_job(part_1)
Nox911 Nov 14, 2018
491009b
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 15, 2018
e243126
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 22, 2018
e74bd61
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 22, 2018
8bc5ffa
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 23, 2018
5787937
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 23, 2018
f17fa1e
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 24, 2018
c63b0a6
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 26, 2018
ed62b5b
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 26, 2018
df4fab4
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 26, 2018
46d284a
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 27, 2018
d1fd49e
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 29, 2018
ec1ad76
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 29, 2018
6ebd934
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 30, 2018
332d867
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 3, 2018
4a99411
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 3, 2018
4cdec42
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 4, 2018
5d44df7
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 4, 2018
c6e63aa
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 4, 2018
8182d1f
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 4, 2018
aefb90f
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 5, 2018
788f8d0
Merge branch 'master' into feature/translate-ml-new_job(part_1)
pavel06081991 Dec 6, 2018
e4e7120
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 6, 2018
a9a6043
Merge branch 'master' of https://github.com/elastic/kibana
Dec 7, 2018
9d247e6
Merge branch 'master' of https://github.com/elastic/kibana
Dec 10, 2018
bd707af
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 11, 2018
63c035f
Merge branch 'master' into feature/translate-ml-new_job(part_1)
pavel06081991 Dec 11, 2018
ced72df
resolve review comments
pavel06081991 Dec 11, 2018
71fb60d
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 12, 2018
4d95475
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 13, 2018
62e824d
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 13, 2018
ccd7fcf
Merge branch 'master' into feature/translate-ml-new_job(part_1)
Nox911 Dec 13, 2018
7b78898
resolve review comments
pavel06081991 Dec 13, 2018
fb38517
Merge branch 'feature/translate-ml-new_job(part_1)' of github.com:Nox…
pavel06081991 Dec 13, 2018
4463796
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 14, 2018
876e358
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 14, 2018
af9e888
Merge branch 'master' into feature/translate-ml-new_job(part_1)
pavel06081991 Dec 14, 2018
231a859
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 14, 2018
2af5dc9
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 14, 2018
8a24575
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 14, 2018
aa0b988
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 14, 2018
1bd465e
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 14, 2018
9c43f68
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 14, 2018
45ea012
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 17, 2018
13f9c64
Merge branch 'master' into feature/translate-ml-new_job(part_1)
pavel06081991 Dec 17, 2018
a315365
move html containing directive from values
pavel06081991 Dec 17, 2018
0df7e10
add description to label
pavel06081991 Dec 18, 2018
b20b0be
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 19, 2018
74356d9
Merge branch 'master' into feature/translate-ml-new_job(part_1)
Nox911 Dec 19, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,22 @@
<div ng-controller="MlCreateSingleMetricJob" class="single-metric-job-container">
<div class="row">
<div class="col-md-6">
<h1 class="euiTitle euiTitle--large">New job from {{ui.pageTitle}}</h1>
<h1
class="euiTitle euiTitle--large"
i18n-id="xpack.ml.newJob.simple.singleMetric.newJobFromTitle"
i18n-default-message="New job from {pageTitle}"
i18n-values="{ pageTitle: ui.pageTitle }"
></h1>
</div>
<div class="col-md-6">
<div class="pull-right">
<span style="font-size:10px;" ng-show="formConfig.chartInterval !== undefined">Chart interval: {{formConfig.chartInterval.getInterval().expression}}</span>
<span
style="font-size:10px;"
ng-show="formConfig.chartInterval !== undefined"
i18n-id="xpack.ml.newJob.simple.singleMetric.chartIntervalLabel"
i18n-default-message="Chart interval: {interval}"
i18n-values="{ interval: formConfig.chartInterval.getInterval().expression }"
></span>
<ml-full-time-range-selector
disabled='(jobState === JOB_STATE.RUNNING || jobState === JOB_STATE.STOPPING || jobState === JOB_STATE.FINISHED)'
index-pattern='ui.indexPattern'
Expand All @@ -23,7 +34,9 @@ <h1 class="euiTitle euiTitle--large">New job from {{ui.pageTitle}}</h1>
<div class="row form-controls">

<div class="form-group col-md-4">
<ml-form-label label-id="new_job_detector_function">Aggregation</ml-form-label>
<ml-form-label label-id="new_job_detector_function">
{{ ::'xpack.ml.newJob.simple.singleMetric.aggregationLabel' | i18n: {defaultMessage: 'Aggregation'} }}
</ml-form-label>
<ui-select
aria-labelledby="ml_aria_label_new_job_detector_function"
aria-describedby="ml_aria_description_new_job_detector_function"
Expand All @@ -34,7 +47,7 @@ <h1 class="euiTitle euiTitle--large">New job from {{ui.pageTitle}}</h1>
ng-disabled="jobState === JOB_STATE.RUNNING || jobState === JOB_STATE.STOPPING || jobState === JOB_STATE.FINISHED"
class=""
>
<ui-select-match placeholder="Select an aggregation">
<ui-select-match placeholder="{{ ::'xpack.ml.newJob.simple.singleMetric.aggregationPlaceholder' | i18n: {defaultMessage: 'Select an aggregation'} }}">
{{$select.selected.title}}
</ui-select-match>
<ui-select-choices
Expand All @@ -46,7 +59,9 @@ <h1 class="euiTitle euiTitle--large">New job from {{ui.pageTitle}}</h1>
</div>

<div class="form-group col-md-4">
<ml-form-label label-id="new_job_detector_fieldname_subset" tooltip-append-to-body="true">Field</ml-form-label>
<ml-form-label label-id="new_job_detector_fieldname_subset" tooltip-append-to-body="true">
{{ ::'xpack.ml.newJob.simple.singleMetric.fieldLabel' | i18n: {defaultMessage: 'Field'} }}
</ml-form-label>
<ui-select
aria-labelledby="ml_aria_label_new_job_detector_fieldname_subset"
aria-describedby="ml_aria_description_new_job_detector_fieldname_subset"
Expand All @@ -57,7 +72,7 @@ <h1 class="euiTitle euiTitle--large">New job from {{ui.pageTitle}}</h1>
ng-disabled="jobState === JOB_STATE.RUNNING || jobState === JOB_STATE.STOPPING || jobState === JOB_STATE.FINISHED"
class=""
>
<ui-select-match placeholder="Select a field">
<ui-select-match placeholder="{{ ::'xpack.ml.newJob.simple.singleMetric.fieldPlaceholder' | i18n: {defaultMessage: 'Select a field'} }}">
<ml-field-type-icon type="$select.selected.mlType"></ml-field-type-icon>{{$select.selected.name}}
</ui-select-match>
<ui-select-choices repeat="field in ui.fields | filter: { name: $select.search }" group-by="'mlType'">
Expand All @@ -68,7 +83,9 @@ <h1 class="euiTitle euiTitle--large">New job from {{ui.pageTitle}}</h1>
</div>

<div class="form-group col-md-4">
<ml-form-label label-id="new_job_bucketspan">Bucket span</ml-form-label>
<ml-form-label label-id="new_job_bucketspan">
{{ ::'xpack.ml.newJob.simple.singleMetric.bucketSpanLabel' | i18n: {defaultMessage: 'Bucket span'} }}
</ml-form-label>
<div class='bucket-span-container'>
<input
aria-labelledby="ml_aria_label_new_job_bucketspan"
Expand All @@ -91,13 +108,18 @@ <h1 class="euiTitle euiTitle--large">New job from {{ui.pageTitle}}</h1>
</ml-bucket-span-estimator>

<button class="euiButton euiButton--primary euiButton--small euiButton--fill navbar-btn-link btn-load-vis"
aria-label="Run search"
aria-label="{{:: 'xpack.ml.newJob.simple.singleMetric.runSearchAriaLabel' | i18n: { defaultMessage: 'Run search' } }}"
ng-click="loadVis()"
ng-disabled="ui.formValid === false || jobState === JOB_STATE.RUNNING || jobState === JOB_STATE.STOPPING || jobState === JOB_STATE.FINISHED" >
<i class="fa fa-play" ></i>
</button>
</div>
<div ng-hide="ui.bucketSpanValid" class="validation-error">Invalid interval format</div>
<div
ng-hide="ui.bucketSpanValid"
class="validation-error"
i18n-id="xpack.ml.newJob.simple.singleMetric.invalidIntervalFormatMessage"
i18n-default-message="Invalid interval format"
></div>
<div ng-show="ui.bucketSpanEstimator.status===-1" class="validation-error">{{ui.bucketSpanEstimator.message}}</div>
</div>
</div>
Expand All @@ -110,7 +132,12 @@ <h1 class="euiTitle euiTitle--large">New job from {{ui.pageTitle}}</h1>
class='kuiCheckBox'
ng-disabled="ui.formValid === false || jobState === JOB_STATE.RUNNING || jobState === JOB_STATE.STOPPING || jobState === JOB_STATE.FINISHED"
ng-model="formConfig.isSparseData" />
<span id="ml_aria_label_new_job_sparsedata" class='kuiCheckBoxLabel__text'>Sparse data</span>
<span
id="ml_aria_label_new_job_sparsedata"
class='kuiCheckBoxLabel__text'
i18n-id="xpack.ml.newJob.simple.singleMetric.sparseDataLabel"
i18n-default-message="Sparse data"
></span>
<i ml-info-icon="new_job_sparsedata" />
</label>
</div>
Expand All @@ -133,8 +160,18 @@ <h2 class="euiTitle euiTitle"><i class='fa fa-spinner fa-spin'></i></h2>
</div>
<div class='status-label' ng-show="chartState === CHART_STATE.NO_RESULTS">
<div class='no-results'>
<h4 class="euiTitle euiTitle--small"><i class="fa fa-info-circle"></i> No results found</h4>
<span>Consider using the <a ng-click="setFullTimeRange()">full {{ui.indexPattern.title}} data</a></span>
<h4
class="euiTitle euiTitle--small"
i18n-id="xpack.ml.newJob.simple.singleMetric.noResultsFoundTitle"
i18n-default-message="{infoIcon} No results found"
i18n-values="{ html_infoIcon: '<i class=\'fa fa-info-circle\'></i>' }"
></h4>
<span
i18n-id="xpack.ml.newJob.simple.singleMetric.noResultsFoundDescription"
i18n-default-message="Consider using the"
i18n-description="after this label we have a link containing index pattern"
></span>
<a ng-click="setFullTimeRange()">{{indexPatternLinkText}}</a>
</div>
</div>
</div>
Expand All @@ -143,33 +180,41 @@ <h4 class="euiTitle euiTitle--small"><i class="fa fa-info-circle"></i> No result

<div ng-show="ui.showJobInput && (jobState === JOB_STATE.NOT_STARTED || jobState === JOB_STATE.RUNNING || jobState === JOB_STATE.STOPPING)">
<div class="form-group">
<ml-form-label label-id="new_job_id" tooltip-append-to-body="true">Name</ml-form-label>
<ml-form-label label-id="new_job_id" tooltip-append-to-body="true">
{{ ::'xpack.ml.newJob.simple.singleMetric.nameLabel' | i18n: {defaultMessage: 'Name'} }}
</ml-form-label>
<input
aria-labelledby="ml_aria_label_new_job_id"
aria-describedby="ml_aria_description_new_job_id"
id="job-id-input"
ng-model="formConfig.jobId"
required
placeholder="Job ID"
placeholder="{{ ::'xpack.ml.newJob.simple.singleMetric.namePlaceholder' | i18n: {defaultMessage: 'Job ID'} }}"
ng-change="changeJobIDCase(formConfig)"
ng-disabled="jobState === JOB_STATE.RUNNING || jobState === JOB_STATE.STOPPING || jobState === JOB_STATE.FINISHED"
class="form-control lowercase" />
<div ng-hide="ui.validation.checks.jobId.valid" class="validation-error">{{ ( ui.validation.checks.jobId.message || "Enter a name for the job" ) }}</div>
</div>
<div ng-hide="ui.validation.checks.jobId.valid" class="validation-error">
{{ ui.validation.checks.jobId.message || nameNotValidMessage }}
</div>
</div>

<div class="form-group">
<ml-form-label label-id="new_job_description">Description</ml-form-label>
<ml-form-label label-id="new_job_description">
{{ ::'xpack.ml.newJob.simple.singleMetric.descriptionLabel' | i18n: {defaultMessage: 'Description'} }}
</ml-form-label>
<input
aria-labelledby="ml_aria_label_new_job_description"
aria-describedby="ml_aria_description_new_job_description"
ng-model="formConfig.description"
placeholder="Job description"
placeholder="{{ ::'xpack.ml.newJob.simple.singleMetric.descriptionPlaceholder' | i18n: {defaultMessage: 'Job description'} }}"
ng-disabled="jobState === JOB_STATE.RUNNING || jobState === JOB_STATE.STOPPING || jobState === JOB_STATE.FINISHED"
class="form-control" />
</div>

<div class="form-group">
<ml-form-label label-id="new_job_group">Job Groups</ml-form-label>
<ml-form-label label-id="new_job_group">
{{ ::'xpack.ml.newJob.simple.singleMetric.jobGroupsLabel' | i18n: {defaultMessage: 'Job Groups'} }}
</ml-form-label>
<ml-job-group-select
aria-labelledby="ml_aria_label_new_job_group"
aria-describedby="ml_aria_description_new_job_group"
Expand All @@ -181,14 +226,17 @@ <h4 class="euiTitle euiTitle--small"><i class="fa fa-info-circle"></i> No result
<div class="form-group">
<div ng-click="ui.showAdvanced = (!ui.showAdvanced || formConfig.useDedicatedIndex)" class="advanced-button-container">
<button
aria-label="{{ ui.showAdvanced ? 'Hide Advanced' : 'Show Advanced' }}"
aria-label="{{ ui.showAdvanced ? hideAdvancedButtonAriaLabel : showAdvancedButtonAriaLabel }}"
aria-describedby="ml_aria_description_new_job_advanced_settings"
type="button"
ng-disabled="formConfig.useDedicatedIndex"
class="kuiButton kuiButton--small kuiButton--hollow advanced-button">
<i aria-hidden="true" ng-class="{ 'fa-caret-down': ui.showAdvanced, 'fa-caret-right': !ui.showAdvanced }" class="fa"></i>
</button>
<label>Advanced</label><i ml-info-icon="new_job_advanced_settings" />
<label
i18n-id="xpack.ml.newJob.simple.singleMetric.advancedLabel"
i18n-default-message="Advanced"
></label><i ml-info-icon="new_job_advanced_settings" />
</div>
<div class='advanced-group' ng-show="ui.showAdvanced">
<div class="form-group">
Expand All @@ -199,16 +247,22 @@ <h4 class="euiTitle euiTitle--small"><i class="fa fa-info-circle"></i> No result
class='kuiCheckBox'
ng-model="formConfig.useDedicatedIndex" />
<span class='kuiCheckBoxLabel__text'>
<span id="ml_aria_label_new_job_dedicated_index">Use dedicated index</span>
<span
id="ml_aria_label_new_job_dedicated_index"
i18n-id="xpack.ml.newJob.simple.singleMetric.useDedicatedIndexLabel"
i18n-default-message="Use dedicated index"
></span>
<i ml-info-icon="new_job_dedicated_index" />
</span>
</label>
</div>
<div class="form-group">
<label class='kuiFormLabel kuiVerticalRhythm'>
<span id="ml_aria_label_new_job_model_memory_limit">
Model memory limit
</span>
<span
id="ml_aria_label_new_job_model_memory_limit"
i18n-id="xpack.ml.newJob.simple.singleMetric.modelMemoryLimitLabel"
i18n-default-message="Model memory limit"
></span>
<i ml-info-icon="new_job_model_memory_limit" />
</label>
<div></div>
Expand All @@ -224,7 +278,12 @@ <h4 class="euiTitle euiTitle--small"><i class="fa fa-info-circle"></i> No result
</div>

<div class="form-group">
<a href="" ng-click="moveToAdvancedJobCreation()">Move to advanced job configuration</a>
<a
href=""
ng-click="moveToAdvancedJobCreation()"
i18n-id="xpack.ml.newJob.simple.singleMetric.advancedConfigurationLinkText"
i18n-default-message="Move to advanced job configuration"
></a>
</div>
<div class="euiFlexGroup euiFlexGroup--gutterSmall euiFlexGroup--alignItemsCenter euiFlexGroup--responsive">
<div class="euiFlexItem euiFlexItem--flexGrowZero">
Expand All @@ -239,71 +298,109 @@ <h4 class="euiTitle euiTitle--small"><i class="fa fa-info-circle"></i> No result
</div>
<div class="euiFlexItem euiFlexItem--flexGrowZero">
<button
aria-label="Create Job"
aria-label="{{ ::'xpack.ml.newJob.simple.singleMetric.createJobButtonAriaLabel' | i18n: {defaultMessage: 'Create Job'} }}"
ng-click="createJob()"
type="button"
ng-show="jobState === JOB_STATE.NOT_STARTED"
ng-disabled='ui.formValid === false || ui.dirty === true || formConfig.jobId === undefined || ui.bucketSpanValid === false'
class="euiButton euiButton--primary euiButton--small euiButton--fill">
<span class="euiButton__content">
Create Job
</span>
<span
class="euiButton__content"
i18n-id="xpack.ml.newJob.simple.singleMetric.createJobButtonLabel"
i18n-default-message="Create Job"
></span>
</button>
</div>
</div>

<div class='job-state-info' ng-show="jobState === JOB_STATE.RUNNING">Analysis running <i class='fa fa-spinner fa-spin'></i></div>
<div class='job-state-info' ng-show="jobState === JOB_STATE.STOPPING">Analysis stopping <i class='fa fa-spinner fa-spin'></i></div>
<div
class='job-state-info'
ng-show="jobState === JOB_STATE.RUNNING"
i18n-id="xpack.ml.newJob.simple.singleMetric.analysisRunningLabel"
i18n-default-message="Analysis running {spinIcon}"
i18n-values="{ html_spinIcon: '<i class=\'fa fa-spinner fa-spin\'></i>'}"
></div>
<div
class='job-state-info'
ng-show="jobState === JOB_STATE.STOPPING"
i18n-id="xpack.ml.newJob.simple.singleMetric.analysisStoppingLabel"
i18n-default-message="Analysis stopping {spinIcon}"
i18n-values="{ html_spinIcon: '<i class=\'fa fa-spinner fa-spin\'></i>'}"
></div>

<button
aria-label="Stop Job"
aria-label="{{ ::'xpack.ml.newJob.simple.singleMetric.stopJobButtonAriaLabel' | i18n: {defaultMessage: 'Stop Job'} }}"
ng-click="stopJob()"
type="button"
ng-show="jobState === JOB_STATE.RUNNING || jobState === JOB_STATE.STOPPING"
ng-disabled="jobState === JOB_STATE.STOPPING"
class="euiButton euiButton--danger euiButton--small">
<span class="euiButton__content">
{{(jobState === JOB_STATE.STOPPING) ? 'Analysis stopping' : 'Stop analysis' }}
</span>
<span
ng-if="jobState === JOB_STATE.STOPPING"
class="euiButton__content"
i18n-id="xpack.ml.newJob.simple.singleMetric.analysisStoppingButtonLabel"
i18n-default-message="Analysis stopping"
></span>
<span
ng-if="jobState !== JOB_STATE.STOPPING"
class="euiButton__content"
i18n-id="xpack.ml.newJob.simple.singleMetric.stopAnalysisButtonLabel"
i18n-default-message="Stop analysis"
></span>
</button>

<a
href='{{resultsUrl}}'
id="job_running_view_results_link"
ng-click="addNewJobToRecentlyAccessed(formConfig.jobId, resultsUrl)"
aria-label="View results of running job"
aria-label="{{ ::'xpack.ml.newJob.simple.singleMetric.viewResultsOfRunningJobButtonAriaLabel' | i18n: {defaultMessage: 'View results of running job'} }}"
ng-show="jobState === JOB_STATE.RUNNING || jobState === JOB_STATE.STOPPING"
class="euiButton euiButton--primary euiButton--small euiButton--fill">
<span class="euiButton__content">
View Results
</span>
<span
class="euiButton__content"
i18n-id="xpack.ml.newJob.simple.singleMetric.viewResultsOfRunningJobButtonLabel"
i18n-default-message="View Results"
></span>
</a>

</div>
<div ng-show="jobState === JOB_STATE.FINISHED">
<h3 class="euiTitle euiTitle--large">Job {{formConfig.jobId }} created
<i style="color:green;" class="fa fa-check" aria-label="Job finished"></i>
<h3 class="euiTitle euiTitle--large">
<span
i18n-id="xpack.ml.newJob.simple.singleMetric.jobCreatedTitle"
i18n-default-message="Job {jobId} created"
i18n-values="{ jobId: formConfig.jobId }"
></span>
<i
style="color:green;"
class="fa fa-check"
aria-label="{{ ::'xpack.ml.newJob.simple.singleMetric.jobFinishedAriaLabel' | i18n: {defaultMessage: 'Job finished'} }}"
></i>
</h3>
<div class="euiSpacer euiSpacer--m"></div>

<button
aria-label="Reset"
aria-label="{{ ::'xpack.ml.newJob.simple.singleMetric.resetButtonAriaLabel' | i18n: {defaultMessage: 'Reset'} }}"
ng-click="resetJob()"
type="button"
class="euiButton euiButton--primary euiButton--small euiButton--fill">
<span class="euiButton__content">
Reset
</span>
<span
class="euiButton__content"
i18n-id="xpack.ml.newJob.simple.singleMetric.resetButtonLabel"
i18n-default-message="Reset"
></span>
</button>
<a
href='{{resultsUrl}}'
id="job_finished_view_results_link"
ng-click="addNewJobToRecentlyAccessed(formConfig.jobId, resultsUrl)"
aria-label="View results of finished job"
aria-label="{{ ::'xpack.ml.newJob.simple.singleMetric.viewResultsOfFinishedJobButtonAriaLabel' | i18n: {defaultMessage: 'View results of finished job'} }}"
class="euiButton euiButton--primary euiButton--small euiButton--fill">
<span class="euiButton__content">
View Results
</span>
<span
class="euiButton__content"
i18n-id="xpack.ml.newJob.simple.singleMetric.viewResultsOfFinishedJobButtonLabel"
i18n-default-message="View Results"
></span>
</a>

</div>
Expand Down
Loading