Skip to content

Commit

Permalink
[ML] Adds anomaly time to aria label for anomalies table actions butt…
Browse files Browse the repository at this point in the history
…on (elastic#32777)

* [ML] Adds anomaly time to aria label for anomalies table actions button

* [ML] Update CHinese translation for edited table actions button
  • Loading branch information
peteharverson authored Mar 11, 2019
1 parent e2e55bc commit 1ebe64f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { getFieldTypeFromMapping } from '../../services/mapping_service';
import { ml } from '../../services/ml_api_service';
import { mlJobService } from '../../services/job_service';
import { getUrlForRecord } from '../../util/custom_url_utils';
import { formatHumanReadableDateTimeSeconds } from '../../util/date_utils';
import { getIndexPatterns } from '../../util/index_utils';
import { replaceStringTokens } from '../../util/string_utils';

Expand Down Expand Up @@ -374,8 +375,8 @@ export const LinksMenu = injectI18n(class LinksMenu extends Component {
iconType="gear"
aria-label={intl.formatMessage({
id: 'xpack.ml.anomaliesTable.linksMenu.selectActionAriaLabel',
defaultMessage: 'Select action',
})}
defaultMessage: 'Select action for anomaly at {time}',
}, { time: formatHumanReadableDateTimeSeconds(anomaly.time) })}
/>
);

Expand Down
1 change: 0 additions & 1 deletion x-pack/plugins/translations/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -4646,7 +4646,6 @@
"xpack.ml.anomaliesTable.linksMenu.configureRulesLabel": "配置规则",
"xpack.ml.anomaliesTable.linksMenu.loadingDetailsErrorMessage": "无法查看示例,因为加载有关类别 ID {categoryId} 的详细信息时出错",
"xpack.ml.anomaliesTable.linksMenu.noMappingCouldBeFoundErrorMessage": "无法查看 mlcategory 为 {categoryId} 的文档的示例,因为找不到分类字段 {categorizationFieldName} 的映射",
"xpack.ml.anomaliesTable.linksMenu.selectActionAriaLabel": "选择操作",
"xpack.ml.anomaliesTable.linksMenu.unableToOpenLinkErrorMessage": "无法打开链接,因为加载有关类别 ID {categoryId} 的详细信息时出错",
"xpack.ml.anomaliesTable.linksMenu.unableToViewExamplesErrorMessage": "无法查看示例,因为未找到作业 ID {jobId} 的详细信息",
"xpack.ml.anomaliesTable.linksMenu.viewExamplesLabel": "查看示例",
Expand Down

0 comments on commit 1ebe64f

Please sign in to comment.