()
| 95 | } |
| 96 | |
| 97 | async function handleReset() { |
| 98 | if (!editable) return; |
| 99 | setBusyKey("reset"); |
| 100 | setNotice(null); |
| 101 | const next = await resetRoutingConfig(); |
| 102 | if (next) { |
| 103 | applyConfig(next); |
| 104 | showNotice("Routing config reset to discovery-managed defaults."); |
| 105 | onRefresh?.(); |
| 106 | } else { |
| 107 | showNotice("Failed to reset routing config.", "error"); |
| 108 | } |
| 109 | setBusyKey(null); |
| 110 | } |
| 111 | |
| 112 | function updateDraft(mode: ModeName, tier: TierName, patch: Partial<DraftState>) { |
| 113 | const key = draftKey(mode, tier); |
nothing calls this directly
no test coverage detected