mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 09:36:27 +00:00
rename open and save as buttons
This commit is contained in:
committed by
David Lechner
parent
9d789c13e1
commit
99fd62100d
@@ -34,7 +34,7 @@ const mergeProps = (
|
||||
ownProps: OwnProps,
|
||||
): OpenFileButtonProps => ({
|
||||
fileExtension: '.py',
|
||||
tooltip: 'Load file',
|
||||
tooltip: 'Open file',
|
||||
icon: openIcon,
|
||||
...ownProps,
|
||||
...stateProps,
|
||||
@@ -18,7 +18,7 @@ const mapStateToProps = (state: RootState): StateProps => ({
|
||||
|
||||
const mapDispatchToProps = (dispatch: Dispatch): DispatchProps => ({
|
||||
onAction: (): void => {
|
||||
dispatch(editor.save());
|
||||
dispatch(editor.saveAs());
|
||||
},
|
||||
});
|
||||
|
||||
@@ -27,7 +27,7 @@ const mergeProps = (
|
||||
dispatchProps: DispatchProps,
|
||||
ownProps: OwnProps,
|
||||
): ActionButtonProps => ({
|
||||
tooltip: 'Save file',
|
||||
tooltip: 'Download file',
|
||||
icon: downloadIcon,
|
||||
...ownProps,
|
||||
...stateProps,
|
||||
@@ -6,10 +6,10 @@ import ButtonGroup from 'react-bootstrap/ButtonGroup';
|
||||
import ButtonToolbar from 'react-bootstrap/ButtonToolbar';
|
||||
import BluetoothButton from './BluetoothButton';
|
||||
import FlashButton from './FlashButton';
|
||||
import LoadButton from './LoadButton';
|
||||
import OpenButton from './OpenButton';
|
||||
import ReplButton from './ReplButton';
|
||||
import RunButton from './RunButton';
|
||||
import SaveButton from './SaveButton';
|
||||
import SaveAsButton from './SaveAsButton';
|
||||
import StopButton from './StopButton';
|
||||
|
||||
class Toolbar extends React.Component {
|
||||
@@ -17,8 +17,8 @@ class Toolbar extends React.Component {
|
||||
return (
|
||||
<ButtonToolbar className="m-2">
|
||||
<ButtonGroup className="mr-2" size="lg">
|
||||
<LoadButton id="load" />
|
||||
<SaveButton id="save" />
|
||||
<OpenButton id="open" />
|
||||
<SaveAsButton id="saveAs" />
|
||||
</ButtonGroup>
|
||||
<ButtonGroup className="mr-2" size="lg">
|
||||
<BluetoothButton id="bluetooth" />
|
||||
|
||||
Reference in New Issue
Block a user