Commit d83024e
Fetch and prefill VPC list in NIC forms (#2977)
This prefetches the list of VPCs and selects the first one in the
"select a VPC" form fields in NIC create form and in the custom NIC
subsection of the instance create form.
I accidentally picked up console/2051 instead of omicron/2051 and
figured I would just knock it out.
It's worth noting that the NIC form contains both a VPC and a Subnet,
which is based on the VPC. At the moment, this implementation only
pre-fills the VPC, though we could chain the calls and pre-fill the
Subnet as well with just the first one in the list. I think it's better
to let the user pick the Subnet, though? Open to thoughts.
Closes #2051
---------
Co-authored-by: David Crespo <david-crespo@users.noreply.github.com>
Co-authored-by: David Crespo <david.crespo@oxidecomputer.com>1 parent 3f2fb9c commit d83024e
3 files changed
Lines changed: 18 additions & 20 deletions
File tree
- app
- forms
- pages/project/instances
- test/e2e
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
| 14 | + | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | 43 | | |
55 | 44 | | |
56 | 45 | | |
57 | 46 | | |
58 | 47 | | |
59 | 48 | | |
60 | 49 | | |
61 | | - | |
62 | 50 | | |
63 | 51 | | |
64 | 52 | | |
| |||
84 | 72 | | |
85 | 73 | | |
86 | 74 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
91 | 87 | | |
92 | 88 | | |
93 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments