diff --git a/src/app/components/SMWidget/SMDropdownButton.jsx b/src/app/components/SMWidget/SMDropdownButton.jsx index 4ba8166957..b0a4d1a89a 100644 --- a/src/app/components/SMWidget/SMDropdownButton.jsx +++ b/src/app/components/SMWidget/SMDropdownButton.jsx @@ -8,8 +8,8 @@ import i18n from '../../lib/i18n'; // Widget dropdown button (with fullscreen button) const SMDropdownButton = React.memo(({ state, actions }) => { - const { fullscreen, needRemove } = state; - const { onToggleFullscreen, onRemove } = actions; + const { fullscreen } = state; + const { onToggleFullscreen } = actions; return ( { onSelect={(eventKey) => { if (eventKey === 'fullscreen') { onToggleFullscreen(); - } else if (needRemove && eventKey === 'remove') { - onRemove && onRemove(); } }} > @@ -35,13 +33,6 @@ const SMDropdownButton = React.memo(({ state, actions }) => { {!fullscreen ? i18n._('Enter Full Screen') : i18n._('Exit Full Screen')} - {needRemove && onRemove && ( - - - - {i18n._('Remove Widget')} - - )} ); }); diff --git a/src/app/components/SMWidget/index.jsx b/src/app/components/SMWidget/index.jsx index 228b779f24..595077c36e 100644 --- a/src/app/components/SMWidget/index.jsx +++ b/src/app/components/SMWidget/index.jsx @@ -60,11 +60,10 @@ function createDefaultWidget(WrappedWidget) { const mapStateToProps = (state, ownProps) => { const { widgets } = state.widget; const { widgetId } = ownProps; - const { minimized = false, fullscreen = false, needRemove = false } = widgets[widgetId] || {}; + const { minimized = false, fullscreen = false } = widgets[widgetId] || {}; return { minimized, - fullscreen, - needRemove + fullscreen }; }; @@ -82,7 +81,6 @@ function createDefaultWidget(WrappedWidget) { minimized: PropTypes.bool.isRequired, fullscreen: PropTypes.bool.isRequired, - needRemove: PropTypes.bool, updateWidgetState: PropTypes.func.isRequired }; @@ -125,12 +123,11 @@ function createDefaultWidget(WrappedWidget) { }; render() { - const { widgetId, headType, minimized, fullscreen, needRemove, onToggle } = this.props; + const { widgetId, headType, minimized, fullscreen, onToggle } = this.props; const state = { title: this.state.title, minimized: minimized, fullscreen: fullscreen, - needRemove: needRemove, buttons: this.state.buttons }; const actions = this.actions; diff --git a/src/app/containers/App.jsx b/src/app/containers/App.jsx index a9afaa74d9..ffa246197b 100644 --- a/src/app/containers/App.jsx +++ b/src/app/containers/App.jsx @@ -294,7 +294,6 @@ class App extends PureComponent { '/laser', '/cnc', '/settings', - '/developTools', '/caselibrary', '/settings/general', '/settings/machine', diff --git a/src/app/containers/DevelopTools/DeveloperPanel.jsx b/src/app/containers/DevelopTools/DeveloperPanel.jsx index bebff317ce..f60107a57c 100644 --- a/src/app/containers/DevelopTools/DeveloperPanel.jsx +++ b/src/app/containers/DevelopTools/DeveloperPanel.jsx @@ -463,7 +463,7 @@ class DeveloperPanel extends PureComponent { disabled={isScreenProtocol} onClick={this.actions.switchOff} > - {i18n._('Screen')} + Screen )} @@ -478,7 +478,7 @@ class DeveloperPanel extends PureComponent { disabled={!canClick} onClick={this.actions.forceSwitch} > - {i18n._('Switch')} + Switch
{i18n._('Packet Type for Raw Update')}:
Packet Type for Raw Update:
{i18n._('Bed')}
Bed
{i18n._('Laser')}
{i18n._('Current Power')}:
Power
{laserPercent}%
{i18n._('Size')}
{i18n._('Offset')}
{i18n._('Direction')}
Direction
{i18n._('Home Location')}
- {i18n._('Feed Rate Range: {{min}} - {{max}} mm/min', { min: feedrateMin, max: feedrateMax })} -
- {i18n._('Distance Overshoot: {{overshoot}}x', { overshoot: overshoot })} -