()
| 244 | * the same flow as when the prefetch discovers the org has it disabled. |
| 245 | */ |
| 246 | export function handleFastModeRejectedByAPI(): void { |
| 247 | if (orgStatus.status === 'disabled') { |
| 248 | return |
| 249 | } |
| 250 | orgStatus = { status: 'disabled', reason: 'preference' } |
| 251 | updateSettingsForSource('userSettings', { fastMode: undefined }) |
| 252 | saveGlobalConfig(current => ({ |
| 253 | ...current, |
| 254 | penguinModeOrgEnabled: false, |
| 255 | })) |
| 256 | orgFastModeChange.emit(false) |
| 257 | } |
| 258 | |
| 259 | // --- Overage rejection listeners --- |
| 260 | // Fired when a 429 indicates fast mode was rejected because extra usage |
no test coverage detected