Commit 50b5aae
committed
Reorder queue creation form to prevent vhost reset
When creating a queue in the management UI, selecting a non-`/` virtual
host, then a queue type different than the default for that virtual host
causes the vhost selection to reset to `/`. This happens because
changing the queue type calls `update()`, which re-renders the entire
form to display specific data for that virtual host, losing the user's
virtual host selection.
This change reorders the "Add a new queue" form fields so that "Type"
appears before "Virtual host". Users now select the queue type first,
triggering the form re-render before they make their vhost selection.
This prevents the vhost reset without requiring JS wizardry/hacks to
preserve form state across re-renders.1 parent feeeb7c commit 50b5aae
1 file changed
+14
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | 230 | | |
245 | 231 | | |
246 | 232 | | |
| |||
258 | 244 | | |
259 | 245 | | |
260 | 246 | | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| |||
0 commit comments