You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The local web interface is accessible via pyp5js serve command. The idea is to add a trash icon (using font awesome maybe?) near to the sketch name that works as an input for the user to delete the sketch. When the user clicks on the trash icon, an alert dialog should ask for confirmation before really deleting.
The pyp5js/http/web_app.py should implement a new view or the sketch view should be able to handle DELETE http requests. We could implement a method at Sketch class to delete the sketch. This method probably will be only an indirection to a shutil.rmtree call to delete that sketch directory. The view should use this function to delete the sketch.
The text was updated successfully, but these errors were encountered:
The local web interface is accessible via
pyp5js serve
command. The idea is to add a trash icon (using font awesome maybe?) near to the sketch name that works as an input for the user to delete the sketch. When the user clicks on the trash icon, an alert dialog should ask for confirmation before really deleting.The
pyp5js/http/web_app.py
should implement a new view or the sketch view should be able to handleDELETE
http requests. We could implement a method atSketch
class to delete the sketch. This method probably will be only an indirection to ashutil.rmtree
call to delete that sketch directory. The view should use this function to delete the sketch.The text was updated successfully, but these errors were encountered: