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

File Manager: fix delete files action (not working in Page Builder) #643

Merged
merged 1 commit into from Dec 9, 2019
Merged

File Manager: fix delete files action (not working in Page Builder) #643

merged 1 commit into from Dec 9, 2019

Conversation

adrians5j
Copy link
Member

Related Issue

Fixes #637

In the File Manager, we used useConfirmationDialog hook, which only works if the dialog plugin (packages/app-admin/src/plugins/Dialog/index.js) was registered in the current layout, which isn't the case for Page Builder. Because of this, using this hook won't work.

Your solution

I replaced useConfirmationDialog hook with a regular ConfirmationDialog component. Not only this fixes the reported issue, but it also makes the File Manager more modular because you don't have to think about the dialog plugin that needs to be registered in the layout. The solution will ensure the dialog is always shown.

How Has This Been Tested?

Manual testing.

Screenshots (if relevant):

N/A

@adrians5j adrians5j self-assigned this Dec 9, 2019
Copy link
Collaborator

@Pavel910 Pavel910 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@adrians5j adrians5j merged commit 4290adf into webiny:master Dec 9, 2019
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 this pull request may close these issues.

Delete of images is not working
2 participants