papermark icon indicating copy to clipboard operation
papermark copied to clipboard

Added delete folder modal with strong prompt, added logic to delete folder with its associated files and folders

Open AndrewHamal opened this issue 1 year ago • 3 comments

What does this PR do?

Adds a "delete folder modal" with a strong prompt, and changes in the delete folder API function to delete the folder and all its associated files and folders within.

task #936

https://github.com/user-attachments/assets/cfe83be7-985d-47c9-b403-0704376b5a96

what you did

While performing a delete folder operation if the folder has nested folders or files within I wrote an operation to find all folders where parentId matches the selected folder ID, write a loop function to loop through the folders if more child exists call a function to perform a delete operation to delete the folder and files.

also added a modal to show a prompt before deleting the folder.

AndrewHamal avatar Oct 20 '24 17:10 AndrewHamal

@AndrewHamal is attempting to deploy a commit to the mftsio Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Oct 20 '24 17:10 vercel[bot]

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

github-actions[bot] avatar Oct 20 '24 17:10 github-actions[bot]

recheck

AndrewHamal avatar Oct 20 '24 17:10 AndrewHamal

@AndrewHamal somehow the CLA assistant action doesn't recognize the comment you left. please do that again :)

mfts avatar Oct 22 '24 10:10 mfts

@mfts sure

AndrewHamal avatar Oct 24 '24 16:10 AndrewHamal

I have read the CLA Document and I hereby sign the CLA

AndrewHamal avatar Oct 24 '24 16:10 AndrewHamal

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
papermark ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 31, 2024 10:14am

vercel[bot] avatar Oct 31 '24 10:10 vercel[bot]

Awarding AndrewHamal: 750 points 🕹️ Well done! Check out your new contribution on oss.gg/AndrewHamal

oss-gg[bot] avatar Oct 31 '24 10:10 oss-gg[bot]