khodedawsh / marzneshin

A fork of Marzban aiming for scalability
https://t.me/marzneshins
GNU Affero General Public License v3.0
82 stars 5 forks source link

[BUG] creating new host when previously cached values are incorrect fails #302

Closed khodedawsh closed 3 weeks ago

khodedawsh commented 1 month ago

Describe the bug in case a user tries to create a new host, and closes the dialog midway, the values are cached without validation so upon the next creation attempt submission fails.

To Reproduce Steps to reproduce the behavior:

  1. Go to hosts page
  2. Click on the create button
  3. fill in one of fragment values
  4. close the dialog
  5. click on the create button again
  6. fill name and address
  7. click on submit button

Expected behavior I expect that the state of fragment be disabled and the submit button working