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