Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be able to delete a sketch using the local web interface #204

Open
berinhard opened this issue Nov 9, 2021 · 0 comments · May be fixed by #226
Open

Be able to delete a sketch using the local web interface #204

berinhard opened this issue Nov 9, 2021 · 0 comments · May be fixed by #226
Milestone

Comments

@berinhard
Copy link
Owner

berinhard commented Nov 9, 2021

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.

@berinhard berinhard added this to the pyp5js 1.0.0 milestone Dec 27, 2021
@pedroqueiroga pedroqueiroga linked a pull request Apr 1, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant