updated the dialog actions for the submit and cancel buttons
This commit is contained in:
parent
f2cf950a6b
commit
1982a93bf0
6 changed files with 45 additions and 29 deletions
|
|
@ -64,6 +64,7 @@ import { green, red } from "@mui/material/colors";
|
|||
import { LocalizationProvider, TimePicker } from "@mui/x-date-pickers";
|
||||
import { AdapterMoment } from "@mui/x-date-pickers/AdapterMoment";
|
||||
import dayjs from "dayjs";
|
||||
import CancelSubmit from "common/CancelSubmit";
|
||||
|
||||
// import { Sensor } from "ventilation/drawable/Sensor";
|
||||
|
||||
|
|
@ -1555,14 +1556,15 @@ export default function InteractionSettings(props: Props) {
|
|||
|
||||
const actions = () => {
|
||||
return (
|
||||
<Grid container justifyContent="space-between" direction="row">
|
||||
<Grid container justifyContent="space-between" direction="row" width={"100%"}>
|
||||
<Grid size={{ xs: 5 }}>
|
||||
{mode === "update" && canEdit && (
|
||||
<DeleteButton onClick={openRemoveInteraction}>Delete</DeleteButton>
|
||||
)}
|
||||
</Grid>
|
||||
<Grid size={{ xs: 7 }} container justifyContent="flex-end">
|
||||
<Button onClick={close} color="primary">
|
||||
<CancelSubmit onSubmit={submit} onCancel={close} submitDisabled={!canEdit || !isInteractionValid(interaction) || invalidConditionValues()}/>
|
||||
{/* <Button onClick={close} color="primary">
|
||||
Cancel
|
||||
</Button>
|
||||
{canEdit && (
|
||||
|
|
@ -1572,7 +1574,7 @@ export default function InteractionSettings(props: Props) {
|
|||
disabled={!isInteractionValid(interaction) || invalidConditionValues()}>
|
||||
Submit
|
||||
</Button>
|
||||
)}
|
||||
)} */}
|
||||
</Grid>
|
||||
</Grid>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue