Commit 35cab79
committed
fix(webapp): toast on enable/disable failure in the schedules sheet
The activeToggleFetcher effect previously short-circuited on `!data?.ok`
and never surfaced server-returned errors (the update and delete effects
already handled this). Split into success/failure branches so an
`{ ok: false, message }` envelope from the action triggers `toast.error`
instead of silently re-enabling the button.1 parent 939fc94 commit 35cab79
1 file changed
Lines changed: 9 additions & 5 deletions
File tree
- apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.tasks.scheduled.$taskParam
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
568 | | - | |
| 568 | + | |
569 | 569 | | |
570 | 570 | | |
571 | 571 | | |
| |||
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
601 | | - | |
| 601 | + | |
602 | 602 | | |
603 | 603 | | |
604 | | - | |
| 604 | + | |
605 | 605 | | |
606 | 606 | | |
607 | | - | |
608 | | - | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
609 | 613 | | |
610 | 614 | | |
611 | 615 | | |
| |||
0 commit comments