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

Cleaning

parent 7e66e534
...@@ -89,7 +89,6 @@ class History extends React.Component { ...@@ -89,7 +89,6 @@ class History extends React.Component {
if (this.props.open) { if (this.props.open) {
if (!this.dataIsReady() && !this.props.versions.isLoading) { if (!this.dataIsReady() && !this.props.versions.isLoading) {
const { content_type_id, id } = this.getContentTypeAndId(); const { content_type_id, id } = this.getContentTypeAndId();
console.log(content_type_id, id)
this.props.fetchVersions(content_type_id, id); this.props.fetchVersions(content_type_id, id);
} }
} }
...@@ -132,7 +131,7 @@ class History extends React.Component { ...@@ -132,7 +131,7 @@ class History extends React.Component {
const versions = this.getVersions() const versions = this.getVersions()
const activeStep = this.state.versionInView; const activeStep = this.state.versionInView;
const maxSteps = versions.length; const maxSteps = versions.length;
console.log(versions[activeStep].comment);
Object.assign(this.newFactory.props.rawModelData, versions[activeStep]) Object.assign(this.newFactory.props.rawModelData, versions[activeStep])
const { rawModelData } = this.newFactory.props; const { rawModelData } = this.newFactory.props;
return ( return (
......
...@@ -2,7 +2,6 @@ import React from 'react'; ...@@ -2,7 +2,6 @@ import React from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import withStyles from '@material-ui/core/styles/withStyles'; import withStyles from '@material-ui/core/styles/withStyles';
import compose from 'recompose/compose'; import compose from 'recompose/compose';
import { connect } from "react-redux";
import Button from '@material-ui/core/Button'; import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog'; import Dialog from '@material-ui/core/Dialog';
import Paper from '@material-ui/core/Paper'; import Paper from '@material-ui/core/Paper';
...@@ -14,14 +13,6 @@ import CloseIcon from '@material-ui/icons/Close'; ...@@ -14,14 +13,6 @@ import CloseIcon from '@material-ui/icons/Close';
import Slide from '@material-ui/core/Slide'; import Slide from '@material-ui/core/Slide';
import Divider from '@material-ui/core/Divider'; 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 editorStyle from './editors/editorStyle';
import _ from 'lodash'; import _ from 'lodash';
......
...@@ -81,7 +81,6 @@ class Editor extends MyComponent { ...@@ -81,7 +81,6 @@ class Editor extends MyComponent {
} }
if (cmp1 != cmp2) { if (cmp1 != cmp2) {
console.log(fieldKey, cmp1, cmp2);
return true; return true;
} }
} }
......
import React from 'react'; import React from 'react';
import PropTypes, { array } from 'prop-types'; import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles'; import { withStyles } from '@material-ui/core/styles';
import Snackbar from '@material-ui/core/Snackbar'; import Snackbar from '@material-ui/core/Snackbar';
import DoneIcon from '@material-ui/icons/Done'; import DoneIcon from '@material-ui/icons/Done';
......
...@@ -3,8 +3,6 @@ import PropTypes from 'prop-types'; ...@@ -3,8 +3,6 @@ import PropTypes from 'prop-types';
import withStyles from '@material-ui/core/styles/withStyles'; import withStyles from '@material-ui/core/styles/withStyles';
import compose from 'recompose/compose'; import compose from 'recompose/compose';
import { connect } from "react-redux"; import { connect } from "react-redux";
import TextField from '@material-ui/core/TextField';
import Editor from './Editor'; import Editor from './Editor';
import editorStyle from './editorStyle'; import editorStyle from './editorStyle';
......
...@@ -8,9 +8,6 @@ import FieldWrapper from './FieldWrapper'; ...@@ -8,9 +8,6 @@ import FieldWrapper from './FieldWrapper';
import MenuItem from '@material-ui/core/MenuItem'; import MenuItem from '@material-ui/core/MenuItem';
import Select from '@material-ui/core/Select'; 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'; import Field from './Field';
const styles = theme => ({ const styles = theme => ({
......
...@@ -6,7 +6,7 @@ export default function renderUpdateInfo() { ...@@ -6,7 +6,7 @@ export default function renderUpdateInfo() {
const { rawModelData } = this.props; const { rawModelData } = this.props;
const { updated_by, updated_on } = rawModelData; const { updated_by, updated_on } = rawModelData;
const readOnly = rawModelData.model_config.read_only; const readOnly = rawModelData.model_config.read_only;
console.log("icissqdqsd")
if (readOnly) { if (readOnly) {
return ( return (
<Typography variant='caption'>Ils s'agit de donner automatiquement récupérer et non modifiables.</Typography> <Typography variant='caption'>Ils s'agit de donner automatiquement récupérer et non modifiables.</Typography>
...@@ -23,4 +23,5 @@ export default function renderUpdateInfo() { ...@@ -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