Skip to content

Commit

Permalink
fixed due to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed Dec 17, 2020
1 parent 643575a commit 98adabb
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 18 deletions.
1 change: 0 additions & 1 deletion x-pack/plugins/translations/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -20147,7 +20147,6 @@
"xpack.uptime.alerts.monitorStatus.timerangeValueField.ariaLabel": "アラートの範囲のための時間単位の数を入力してください",
"xpack.uptime.alerts.monitorStatus.timerangeValueField.expression": "within",
"xpack.uptime.alerts.monitorStatus.timerangeValueField.value": "最終{value}",
"xpack.uptime.alerts.monitorStatus.title.label": "稼働状況の監視ステータス",
"xpack.uptime.alerts.settings.createConnector": "コネクターを作成",
"xpack.uptime.alerts.timerangeUnitSelectable.daysOption.ariaLabel": "「日」の時間範囲選択項目",
"xpack.uptime.alerts.timerangeUnitSelectable.hoursOption.ariaLabel": "「時間」の時間範囲選択項目",
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 @@ -20166,7 +20166,6 @@
"xpack.uptime.alerts.monitorStatus.timerangeValueField.ariaLabel": "输入告警范围的时间单位数目",
"xpack.uptime.alerts.monitorStatus.timerangeValueField.expression": "之内",
"xpack.uptime.alerts.monitorStatus.timerangeValueField.value": "上一 {value}",
"xpack.uptime.alerts.monitorStatus.title.label": "运行时间监测状态",
"xpack.uptime.alerts.settings.createConnector": "创建连接器",
"xpack.uptime.alerts.timerangeUnitSelectable.daysOption.ariaLabel": "“天”时间范围选择项",
"xpack.uptime.alerts.timerangeUnitSelectable.hoursOption.ariaLabel": "“小时”时间范围选择项",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,10 +375,7 @@ export const AlertForm = ({
hasDisabledByLicenseAlertTypes = true;
}
(result[producer] = result[producer] || []).push({
name:
alertTypeValue.alertTypeModel.name === undefined
? alertTypeValue.alertType.name
: alertTypeValue.alertTypeModel.name.props.defaultMessage,
name: alertTypeValue.alertType.name,
id: alertTypeValue.alertTypeModel.id,
checkEnabledResult,
alertTypeItem: alertTypeValue.alertTypeModel,
Expand Down
1 change: 0 additions & 1 deletion x-pack/plugins/triggers_actions_ui/public/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ export interface AlertTypeModel<AlertParamsType = any> {
| React.LazyExoticComponent<ComponentType<AlertTypeParamsExpressionProps<AlertParamsType>>>;
requiresAppContext: boolean;
defaultActionMessage?: string;
name?: JSX.Element;
}

export interface IErrorObject {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,7 @@ describe('monitor status alert type', () => {
"documentationUrl": [Function],
"iconClass": "uptimeApp",
"id": "xpack.uptime.alerts.monitorStatus",
"name": <FormattedMessage
defaultMessage="Uptime monitor status"
id="xpack.uptime.alerts.monitorStatus.title.label"
values={Object {}}
/>,
"name": "Uptime monitor status",
"requiresAppContext": false,
"validate": [Function],
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ export const initMonitorStatusAlertType: AlertTypeInitializer = ({
plugins,
}): AlertTypeModel => ({
id: CLIENT_ALERT_TYPES.MONITOR_STATUS,
name: (
<FormattedMessage
id="xpack.uptime.alerts.monitorStatus.title.label"
defaultMessage="Uptime monitor status"
/>
),
description,
iconClass: 'uptimeApp',
documentationUrl(docLinks) {
Expand Down

0 comments on commit 98adabb

Please sign in to comment.