imported mining stuff, can add a mine and list them
This commit is contained in:
parent
7dad5217e7
commit
5fcb99ef40
36 changed files with 6622 additions and 32 deletions
|
|
@ -63,8 +63,9 @@ import { makeStyles } from "@mui/styles";
|
|||
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 dayjs from "dayjs";
|
||||
import CancelSubmit from "common/CancelSubmit";
|
||||
import { Sensor } from "ventilation/drawable/Sensor";
|
||||
|
||||
// import { Sensor } from "ventilation/drawable/Sensor";
|
||||
|
||||
|
|
@ -112,7 +113,7 @@ interface Props {
|
|||
closeDialogCallback: Function;
|
||||
refreshCallback: Function;
|
||||
canEdit?: boolean;
|
||||
// sensor?: Sensor;
|
||||
sensor?: Sensor;
|
||||
}
|
||||
|
||||
export default function InteractionSettings(props: Props) {
|
||||
|
|
@ -126,7 +127,7 @@ export default function InteractionSettings(props: Props) {
|
|||
closeDialogCallback,
|
||||
refreshCallback,
|
||||
canEdit,
|
||||
// sensor
|
||||
sensor
|
||||
} = props;
|
||||
const theme = useTheme();
|
||||
const { success, error } = useSnackbar();
|
||||
|
|
@ -206,11 +207,11 @@ export default function InteractionSettings(props: Props) {
|
|||
or(interaction.settings.result, undefined)
|
||||
);
|
||||
|
||||
// if (sensor) {
|
||||
// interaction.settings.subtype = 2;
|
||||
// interaction.settings.nodeOne = sensor.index;
|
||||
// interaction.settings.nodeTwo = sensor.index;
|
||||
// }
|
||||
if (sensor) {
|
||||
interaction.settings.subtype = 2;
|
||||
interaction.settings.nodeOne = sensor.index;
|
||||
interaction.settings.nodeTwo = sensor.index;
|
||||
}
|
||||
|
||||
setIsRemoveInteractionOpen(false);
|
||||
setNumConditions(numConditions);
|
||||
|
|
@ -982,15 +983,15 @@ export default function InteractionSettings(props: Props) {
|
|||
)}
|
||||
</Grid>
|
||||
</Grid>
|
||||
{/* {multiNodeSource() && !sensor && (
|
||||
{multiNodeSource() && !sensor && (
|
||||
<Grid
|
||||
key={"nodes"}
|
||||
container
|
||||
direction="row"
|
||||
justify="center"
|
||||
justifyContent="center"
|
||||
alignItems="center"
|
||||
spacing={2}>
|
||||
<Grid item xs={10} sm={4}>
|
||||
<Grid size={{ xs: 10, sm: 4 }}>
|
||||
<TextField
|
||||
select
|
||||
id="subtype"
|
||||
|
|
@ -1019,7 +1020,7 @@ export default function InteractionSettings(props: Props) {
|
|||
</MenuItem>
|
||||
</TextField>
|
||||
</Grid>
|
||||
<Grid item xs={10} sm={4}>
|
||||
<Grid size={{ xs: 10, sm: 4 }}>
|
||||
{(subtypeDropdown === 2 || subtypeDropdown === 3 || subtypeDropdown === 4) && (
|
||||
<TextField
|
||||
select
|
||||
|
|
@ -1036,7 +1037,7 @@ export default function InteractionSettings(props: Props) {
|
|||
</TextField>
|
||||
)}
|
||||
</Grid>
|
||||
<Grid item xs={10} sm={4}>
|
||||
<Grid size={{ xs: 10, sm: 4 }}>
|
||||
{subtypeDropdown === 3 && (
|
||||
<TextField
|
||||
select
|
||||
|
|
@ -1054,7 +1055,7 @@ export default function InteractionSettings(props: Props) {
|
|||
)}
|
||||
</Grid>
|
||||
</Grid>
|
||||
)} */}
|
||||
)}
|
||||
</React.Fragment>
|
||||
);
|
||||
};
|
||||
|
|
@ -1564,7 +1565,7 @@ export default function InteractionSettings(props: Props) {
|
|||
</Grid>
|
||||
<Grid size={{ xs: 7 }} container justifyContent="flex-end">
|
||||
<CancelSubmit onSubmit={submit} onCancel={close} submitDisabled={!canEdit || !isInteractionValid(interaction) || invalidConditionValues()}/>
|
||||
{/* <Button onClick={close} color="primary">
|
||||
<Button onClick={close} color="primary">
|
||||
Cancel
|
||||
</Button>
|
||||
{canEdit && (
|
||||
|
|
@ -1574,7 +1575,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