Skip to content

Form resets on warnings from backend #1727

@snichme

Description

@snichme

Describe the bug

When creating an Exchange and you happen to select a vhost for which your user doesn't have permissions to create exchanges on you get back an message from backend saying that you dont have permissions and then the whole form is reset.

Create a new vhost called test
Create a new user that has full access to test but not /
Create an Topic exchange on / with name "My Exchange" and enter { "x-alternate-exchange": "X" }
When you submit you get a permissions warning but now the whole form is reset so you have to fill everything in again.

Ideas for solving this

  • Dont reset the form
  • Only show the vhosts that you have permissions to create exchanges on in the "Add exchange form"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions