Skip to content

Commit

Permalink
[RPP] Disable calibrated options in older CPU select if not calibrated
Browse files Browse the repository at this point in the history
Minor bug fix, these options should not be selectable if calibration
process has not run.

Also minor style driveby- center the text shown in during calibration.

Bug: 311438112
Change-Id: Iafd2cbc24c79e7023e030d963b4978cfccfbe94e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6192923
Commit-Queue: Connor Clark <[email protected]>
Auto-Submit: Connor Clark <[email protected]>
Reviewed-by: Paul Irish <[email protected]>
  • Loading branch information
Connor Clark authored and Devtools-frontend LUCI CQ committed Jan 23, 2025
1 parent 18b2d02 commit df4eed9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export class CalibrationController {
margin: 0;
background-color: antiquewhite;
font-size: 18px;
text-align: center;
display: flex;
flex-direction: column;
Expand Down
1 change: 1 addition & 0 deletions front_end/panels/mobile_throttling/ThrottlingManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ export class ThrottlingManager {
optionEls[i].text = option === recommendedOption ?
i18nString(UIStrings.recommendedThrottling, {PH1: option.title()}) :
option.title();
optionEls[i].disabled = option.rate() === 0;
}
},
};
Expand Down

0 comments on commit df4eed9

Please sign in to comment.