Commit 9ea9cf99 authored by Florent Chehab's avatar Florent Chehab

Cleaning

parent 7e66e534
......@@ -89,7 +89,6 @@ class History extends React.Component {
if (this.props.open) {
if (!this.dataIsReady() && !this.props.versions.isLoading) {
const { content_type_id, id } = this.getContentTypeAndId();
console.log(content_type_id, id)
this.props.fetchVersions(content_type_id, id);
}
}
......@@ -132,7 +131,7 @@ class History extends React.Component {
const versions = this.getVersions()
const activeStep = this.state.versionInView;
const maxSteps = versions.length;
console.log(versions[activeStep].comment);
Object.assign(this.newFactory.props.rawModelData, versions[activeStep])
const { rawModelData } = this.newFactory.props;
return (
......
......@@ -2,7 +2,6 @@ import React from 'react';
import PropTypes from 'prop-types';
import withStyles from '@material-ui/core/styles/withStyles';
import compose from 'recompose/compose';
import { connect } from "react-redux";
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import Paper from '@material-ui/core/Paper';
......@@ -14,14 +13,6 @@ import CloseIcon from '@material-ui/icons/Close';
import Slide from '@material-ui/core/Slide';
import Divider from '@material-ui/core/Divider';
import MobileStepper from '@material-ui/core/MobileStepper';
import KeyboardArrowLeft from '@material-ui/icons/KeyboardArrowLeft';
import KeyboardArrowRight from '@material-ui/icons/KeyboardArrowRight';
import { versionsFetchData, versionsInvalidated } from '../../../generated/actions';
import Loading from '../../other/Loading';
import dateTimeStrToStr from '../../../utils/dateTimeStrToStr';
import editorStyle from './editors/editorStyle';
import _ from 'lodash';
......
......@@ -81,7 +81,6 @@ class Editor extends MyComponent {
}
if (cmp1 != cmp2) {
console.log(fieldKey, cmp1, cmp2);
return true;
}
}
......
import React from 'react';
import PropTypes, { array } from 'prop-types';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Snackbar from '@material-ui/core/Snackbar';
import DoneIcon from '@material-ui/icons/Done';
......
......@@ -3,8 +3,6 @@ import PropTypes from 'prop-types';
import withStyles from '@material-ui/core/styles/withStyles';
import compose from 'recompose/compose';
import { connect } from "react-redux";
import TextField from '@material-ui/core/TextField';
import Editor from './Editor';
import editorStyle from './editorStyle';
......
......@@ -8,9 +8,6 @@ import FieldWrapper from './FieldWrapper';
import MenuItem from '@material-ui/core/MenuItem';
import Select from '@material-ui/core/Select';
import TextField from '@material-ui/core/TextField';
import Typography from '@material-ui/core/Typography';
import Field from './Field';
const styles = theme => ({
......
......@@ -6,7 +6,7 @@ export default function renderUpdateInfo() {
const { rawModelData } = this.props;
const { updated_by, updated_on } = rawModelData;
const readOnly = rawModelData.model_config.read_only;
console.log("icissqdqsd")
if (readOnly) {
return (
<Typography variant='caption'>Ils s'agit de donner automatiquement récupérer et non modifiables.</Typography>
......@@ -23,4 +23,5 @@ export default function renderUpdateInfo() {
)
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment