Skip to content

Delete confirm button lets you click twice #1776

@david-crespo

Description

@david-crespo

And then you get weird behavior for your trouble. When deleting a disk, my second click got me a 404 toast after the first click succeeded. When deleting an instance, it seemed to keep me on the same page with a 404 rather than landing on project instance list like it's supposed to.

Easy fix is to disable the button. Even better would be to give the button a loading spinner to show something is happening, which is the reason I clicked twice in the first place. Should be easy, I think Button has a loading prop.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions