diff --git a/src/widget/edit-widget/edit-widget-control-creator.js b/src/widget/edit-widget/edit-widget-control-creator.js index 3e6488b..8eb6583 100644 --- a/src/widget/edit-widget/edit-widget-control-creator.js +++ b/src/widget/edit-widget/edit-widget-control-creator.js @@ -33,7 +33,6 @@ import EditWidgetMinMaxControl from './edit-widget-min-max-control'; import EditWidgetParametersControl from './edit-widget-parameters-control'; import EditWidgetICControl from './edit-widget-ic-control'; import EditWidgetPlotColorsControl from './edit-widget-plot-colors-control'; -import EditWidgetPlotModeControl from './edit-widget-plot-mode-control'; //import EditWidgetHTMLContent from './edit-widget-html-content'; export default function CreateControls(widgetType = null, widget = null, sessionToken = null, files = null,ics = null, signals, handleChange) { @@ -76,8 +75,7 @@ export default function CreateControls(widgetType = null, widget = null, session handleChange(e)} />, handleChange(e)} />, handleChange(e)} />, - handleChange(e)} />, - handleChange(e)} /> + handleChange(e)} /> ); break; case 'Table': diff --git a/src/widget/edit-widget/edit-widget-plot-mode-control.js b/src/widget/edit-widget/edit-widget-plot-mode-control.js deleted file mode 100644 index e474ea5..0000000 --- a/src/widget/edit-widget/edit-widget-plot-mode-control.js +++ /dev/null @@ -1,56 +0,0 @@ -/** - * This file is part of VILLASweb. - * - * VILLASweb is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VILLASweb is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VILLASweb. If not, see . - **********************************************************************************/ - -import React, { Component } from 'react'; -import { Form } from 'react-bootstrap'; - -class EditWidgetPlotModeControl extends Component { - constructor(props) { - super(props); - - this.state = { - widget: {}, - }; - } - - static getDerivedStateFromProps(props, state){ - return { - widget: props.widget, - }; - } - - handleModeChange(e){ - - this.props.handleChange({ target: { id: this.props.controlId, value: e.target.value } }); - - } - - render() { - - return ( - - Select mode - this.handleModeChange(e)}> - - - - - ); - } -} - -export default EditWidgetPlotModeControl; \ No newline at end of file diff --git a/src/widget/widget-factory.js b/src/widget/widget-factory.js index e2b5f36..8a9baa8 100644 --- a/src/widget/widget-factory.js +++ b/src/widget/widget-factory.js @@ -91,7 +91,6 @@ class WidgetFactory { widget.customProperties.yUseMinMax = false; widget.customProperties.lineColors = []; widget.customProperties.showUnit = false; - widget.customProperties.mode = 'auto time-scrolling'; break; case 'Table': widget.minWidth = 200;