Commit 59f225e
authored
Display server errors in modals, don't use toasts (#3192)
Found this while working on #3178. Instance resize, attach floating IP,
and attach ephemeral IP all had `onError`s that triggered toasts on
server error. The first two also displayed the error in the modal.
Ephemeral IP did not. This PR gets rid of the toasts and puts an error
display into attach ephemeral IP. It doesn't look very good (maybe we
should move the error and give it a little box or something), but it's
basically the same as it already was, minus the extra toasts.
(Screenshot is from playwright, hence the weird missing submit button —
I think it's right in the middle of switching between the button text
and the loading spinner.)
<img width="930" height="528" alt="Screenshot 2026-04-21 at 5 20 23 PM"
src="https://github.com/user-attachments/assets/0c6db6a6-913f-40aa-8ccc-245be9dfc1d0"
/>1 parent f25398d commit 59f225e
4 files changed
Lines changed: 6 additions & 15 deletions
File tree
- app
- components
- pages/project/instances
- test/e2e
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | 68 | | |
72 | 69 | | |
73 | 70 | | |
| |||
96 | 93 | | |
97 | 94 | | |
98 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | 88 | | |
92 | 89 | | |
93 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | 304 | | |
308 | 305 | | |
309 | 306 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
225 | 224 | | |
226 | | - | |
227 | | - | |
228 | 225 | | |
229 | 226 | | |
230 | 227 | | |
| |||
0 commit comments