3DStreet / 3dstreet

🚲🚢🚌 Web-based 3D visualization of streets using A-Frame
https://3dstreet.app
Other
249 stars 30 forks source link

prompt for current scene title for save as... or if untitled #564

Open kfarr opened 3 weeks ago

kfarr commented 3 weeks ago

If the scene title is empty, or it's a save as event, then user browser input prompt to ask for a new scene title

Right here: https://github.com/3DStreet/3dstreet/blob/main/src/editor/components/scenegraph/Toolbar.js#L174

      // if (currentSceneTitle = '' || doSaveAs ) { 
      //    code here for input prompt for new scene title 
      //  }

If user cancels, then do not save the scene. Ideally show warning or error message in this case to remind the user that the scene was not saved since the cancel button was pressed during title choice.