feat(client): polish customUpCodes ui
This commit is contained in:
1 parent
d8dafa311a
commit
6d433fd0ac
3 files changed
+13
No files matched your search
@@ -1117,6 +1117,15 @@ const CreateMonitorPage = () => {
|
|||||||
"pages.createMonitor.form.advanced.option.customUpCodes.label"
|
"pages.createMonitor.form.advanced.option.customUpCodes.label"
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
<Typography
|
||||||
|
component="span"
|
||||||
|
color={theme.palette.text.secondary}
|
||||||
|
sx={{ opacity: 0.8 }}
|
||||||
|
>
|
||||||
|
{t(
|
||||||
|
"pages.createMonitor.form.advanced.option.customUpCodes.description"
|
||||||
|
)}
|
||||||
|
</Typography>
|
||||||
{selectedOptions.length > 0 && (
|
{selectedOptions.length > 0 && (
|
||||||
<Stack
|
<Stack
|
||||||
flex={1}
|
flex={1}
|
||||||
|
|||||||
@@ -80,6 +80,9 @@ export interface HttpStatusCodeOption {
|
|||||||
name: string;
|
name: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Must stay in sync with HttpStatusCodes in server/src/domain/monitors/monitor.types.ts
|
||||||
|
*/
|
||||||
export const ALL_HTTP_STATUS_CODES: HttpStatusCodeOption[] = [
|
export const ALL_HTTP_STATUS_CODES: HttpStatusCodeOption[] = [
|
||||||
{ id: 100, name: "100 - Continue" },
|
{ id: 100, name: "100 - Continue" },
|
||||||
{ id: 101, name: "101 - Switching Protocols" },
|
{ id: 101, name: "101 - Switching Protocols" },
|
||||||
|
|||||||
@@ -508,6 +508,7 @@
|
|||||||
},
|
},
|
||||||
"customUpCodes": {
|
"customUpCodes": {
|
||||||
"label": "Accepted status codes",
|
"label": "Accepted status codes",
|
||||||
|
"description": "Add any non-2xx codes that should also be considered successful.",
|
||||||
"removeAriaLabel": "Remove status code"
|
"removeAriaLabel": "Remove status code"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user