diff --git a/src/components/scenegraph/Toolbar.js b/src/components/scenegraph/Toolbar.js
index 57091fdf..a3d21f25 100644
--- a/src/components/scenegraph/Toolbar.js
+++ b/src/components/scenegraph/Toolbar.js
@@ -1,10 +1,11 @@
-import { Camera32Icon, Cross32Icon, Save24Icon } from '../../icons';
+import { Camera32Icon, Cross32Icon, Save24Icon, Load24Icon } from '../../icons';
import { Button } from '../components';
import { Component } from 'react';
import Events from '../../lib/Events';
import { SavingModal } from '../modals/SavingModal';
import { saveBlob } from '../../lib/utils';
+import { inputStreetmix, fileJSON } from '../../lib/toolbar';
// const LOCALSTORAGE_MOCAP_UI = "aframeinspectormocapuienabled";
@@ -43,7 +44,10 @@ export default class Toolbar extends Component {
state = {
// isPlaying: false,
isSaveActionActive: false,
- isCapturingScreen: false
+ isLoadActionActive: false,
+ isCapturingScreen: false,
+ showSaveBtn: true,
+ showLoadBtn: true
};
convertToObject = () => {
@@ -142,7 +146,15 @@ export default class Toolbar extends Component {
toggleSaveActionState = () =>
this.setState((prevState) => ({
...prevState,
- isSaveActionActive: !this.state.isSaveActionActive
+ isSaveActionActive: !this.state.isSaveActionActive,
+ showLoadBtn: !this.state.showLoadBtn
+ }));
+
+ toggleLoadActionState = () =>
+ this.setState((prevState) => ({
+ ...prevState,
+ isLoadActionActive: !this.state.isLoadActionActive,
+ showSaveBtn: !this.state.showSaveBtn
}));
render() {
@@ -171,48 +183,100 @@ export default class Toolbar extends Component {
onClick={this.toggleScenePlaying}
/> */}
- {!this.state.isSaveActionActive ? (
-
- ) : (
-
-
-
-
-