Skip to content

Commit 98adabb

Browse files
committed
fixed due to comments
1 parent 643575a commit 98adabb

File tree

6 files changed

+2
-18
lines changed

6 files changed

+2
-18
lines changed

x-pack/plugins/translations/translations/ja-JP.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20147,7 +20147,6 @@
2014720147
"xpack.uptime.alerts.monitorStatus.timerangeValueField.ariaLabel": "アラートの範囲のための時間単位の数を入力してください",
2014820148
"xpack.uptime.alerts.monitorStatus.timerangeValueField.expression": "within",
2014920149
"xpack.uptime.alerts.monitorStatus.timerangeValueField.value": "最終{value}",
20150-
"xpack.uptime.alerts.monitorStatus.title.label": "稼働状況の監視ステータス",
2015120150
"xpack.uptime.alerts.settings.createConnector": "コネクターを作成",
2015220151
"xpack.uptime.alerts.timerangeUnitSelectable.daysOption.ariaLabel": "「日」の時間範囲選択項目",
2015320152
"xpack.uptime.alerts.timerangeUnitSelectable.hoursOption.ariaLabel": "「時間」の時間範囲選択項目",

x-pack/plugins/translations/translations/zh-CN.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20166,7 +20166,6 @@
2016620166
"xpack.uptime.alerts.monitorStatus.timerangeValueField.ariaLabel": "输入告警范围的时间单位数目",
2016720167
"xpack.uptime.alerts.monitorStatus.timerangeValueField.expression": "之内",
2016820168
"xpack.uptime.alerts.monitorStatus.timerangeValueField.value": "上一 {value}",
20169-
"xpack.uptime.alerts.monitorStatus.title.label": "运行时间监测状态",
2017020169
"xpack.uptime.alerts.settings.createConnector": "创建连接器",
2017120170
"xpack.uptime.alerts.timerangeUnitSelectable.daysOption.ariaLabel": "“天”时间范围选择项",
2017220171
"xpack.uptime.alerts.timerangeUnitSelectable.hoursOption.ariaLabel": "“小时”时间范围选择项",

x-pack/plugins/triggers_actions_ui/public/application/sections/alert_form/alert_form.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -375,10 +375,7 @@ export const AlertForm = ({
375375
hasDisabledByLicenseAlertTypes = true;
376376
}
377377
(result[producer] = result[producer] || []).push({
378-
name:
379-
alertTypeValue.alertTypeModel.name === undefined
380-
? alertTypeValue.alertType.name
381-
: alertTypeValue.alertTypeModel.name.props.defaultMessage,
378+
name: alertTypeValue.alertType.name,
382379
id: alertTypeValue.alertTypeModel.id,
383380
checkEnabledResult,
384381
alertTypeItem: alertTypeValue.alertTypeModel,

x-pack/plugins/triggers_actions_ui/public/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ export interface AlertTypeModel<AlertParamsType = any> {
196196
| React.LazyExoticComponent<ComponentType<AlertTypeParamsExpressionProps<AlertParamsType>>>;
197197
requiresAppContext: boolean;
198198
defaultActionMessage?: string;
199-
name?: JSX.Element;
200199
}
201200

202201
export interface IErrorObject {

x-pack/plugins/uptime/public/lib/alert_types/__tests__/monitor_status.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,7 @@ describe('monitor status alert type', () => {
207207
"documentationUrl": [Function],
208208
"iconClass": "uptimeApp",
209209
"id": "xpack.uptime.alerts.monitorStatus",
210-
"name": <FormattedMessage
211-
defaultMessage="Uptime monitor status"
212-
id="xpack.uptime.alerts.monitorStatus.title.label"
213-
values={Object {}}
214-
/>,
210+
"name": "Uptime monitor status",
215211
"requiresAppContext": false,
216212
"validate": [Function],
217213
}

x-pack/plugins/uptime/public/lib/alert_types/monitor_status.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ export const initMonitorStatusAlertType: AlertTypeInitializer = ({
2323
plugins,
2424
}): AlertTypeModel => ({
2525
id: CLIENT_ALERT_TYPES.MONITOR_STATUS,
26-
name: (
27-
<FormattedMessage
28-
id="xpack.uptime.alerts.monitorStatus.title.label"
29-
defaultMessage="Uptime monitor status"
30-
/>
31-
),
3226
description,
3327
iconClass: 'uptimeApp',
3428
documentationUrl(docLinks) {

0 commit comments

Comments
 (0)