Added notifications to server validation and small styling changes
This commit is contained in:
1 parent
6e7c50a615
commit
110e31fb7d
6 files changed
+8
-3
No files matched your search
@@ -77,6 +77,7 @@ export const updateUptimeMonitor = createAsyncThunk(
|
|||||||
name: monitor.name,
|
name: monitor.name,
|
||||||
description: monitor.description,
|
description: monitor.description,
|
||||||
interval: monitor.interval,
|
interval: monitor.interval,
|
||||||
|
notifications: monitor.notifications
|
||||||
};
|
};
|
||||||
const res = await axiosInstance.post(
|
const res = await axiosInstance.post(
|
||||||
`/monitors/edit/${monitor._id}`,
|
`/monitors/edit/${monitor._id}`,
|
||||||
|
|||||||
@@ -31,6 +31,9 @@
|
|||||||
.account .MuiButtonGroup-root button {
|
.account .MuiButtonGroup-root button {
|
||||||
border-color: var(--env-var-color-16);
|
border-color: var(--env-var-color-16);
|
||||||
}
|
}
|
||||||
|
.account button{
|
||||||
|
height: 34px;
|
||||||
|
}
|
||||||
.account [class$="-form"] {
|
.account [class$="-form"] {
|
||||||
width: inherit;
|
width: inherit;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -103,7 +103,7 @@
|
|||||||
/* ///// */
|
/* ///// */
|
||||||
.login-page
|
.login-page
|
||||||
.MuiStack-root:not(:has(> .MuiButtonBase-root))
|
.MuiStack-root:not(:has(> .MuiButtonBase-root))
|
||||||
span:not(.MuiTypography-root) {
|
span:not(.MuiTypography-root):not(.field-required) {
|
||||||
color: var(--env-var-color-3);
|
color: var(--env-var-color-3);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|||||||
@@ -375,7 +375,7 @@ const Configure = () => {
|
|||||||
<Button
|
<Button
|
||||||
level="primary"
|
level="primary"
|
||||||
label="Save"
|
label="Save"
|
||||||
sx={{ px: theme.gap.ml }}
|
sx={{ px: theme.gap.large }}
|
||||||
onClick={handleSubmit}
|
onClick={handleSubmit}
|
||||||
/>
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ const Settings = () => {
|
|||||||
</Box>
|
</Box>
|
||||||
</Stack>
|
</Stack>
|
||||||
<Stack direction="row" justifyContent="flex-end">
|
<Stack direction="row" justifyContent="flex-end">
|
||||||
<Button level="primary" label="Save" />
|
<Button level="primary" label="Save" sx={{ px: theme.gap.large }} />
|
||||||
</Stack>
|
</Stack>
|
||||||
</form>
|
</form>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
@@ -160,6 +160,7 @@ const editMonitorBodyValidation = joi.object({
|
|||||||
name: joi.string(),
|
name: joi.string(),
|
||||||
description: joi.string(),
|
description: joi.string(),
|
||||||
interval: joi.number(),
|
interval: joi.number(),
|
||||||
|
notifications: joi.array().items(joi.object()),
|
||||||
});
|
});
|
||||||
|
|
||||||
//****************************************
|
//****************************************
|
||||||
|
|||||||
Reference in new issue
Block a user