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

[Dashboard] Fix for error flashing when deleting repo #5461

Merged
merged 3 commits into from
Oct 17, 2022

Conversation

castelblanque
Copy link
Collaborator

Signed-off-by: Rafa Castelblanque rcastelblanq@vmware.com

Description of the change

This PR fixes a problem in the package repositories deletion action. When the user didn't have enough permissions to delete the repo (or any other error at deletion), the error message was shown flashing and disappearing.
This was confusing: user was seeing an error for a fraction of a second, and the repository not deleted.

The user now can see the error message, after the confirmation popup is automatically closed:

image

Repos are now re-fetched only when there is no error in the deletion action.

Benefits

User is able to see the actual error message and repos are not unnecessarily re-fetched.

Possible drawbacks

N/A

Applicable issues

Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
@netlify
Copy link

netlify bot commented Oct 13, 2022

Deploy Preview for kubeapps-dev canceled.

Name Link
🔨 Latest commit 377cc86
🔍 Latest deploy log https://app.netlify.com/sites/kubeapps-dev/deploys/634d1e5f2feb6b00098499ab

Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
@castelblanque castelblanque marked this pull request as ready for review October 13, 2022 15:30
Copy link
Contributor

@antgamdia antgamdia left a comment

Choose a reason for hiding this comment

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

Thanks!

@castelblanque castelblanque merged commit 1fd6a76 into main Oct 17, 2022
@castelblanque castelblanque deleted the 4220-repo-delete-error branch October 17, 2022 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI error flashes when trying to delete a repository without permissions
3 participants