diff options
author | Ajay <[email protected]> | 2023-09-24 21:13:43 -0400 |
---|---|---|
committer | Ajay <[email protected]> | 2023-09-24 21:13:43 -0400 |
commit | 109b7ed5bc8254983d157c62594a3b2f65466941 (patch) | |
tree | 8aca616ac0adb678832752e498002302e2d3b0dc | |
parent | 3eb853154ffb50cb9156ae9bb91c9f5420b1aa25 (diff) | |
download | SponsorBlock-109b7ed5bc8254983d157c62594a3b2f65466941.tar.gz SponsorBlock-109b7ed5bc8254983d157c62594a3b2f65466941.zip |
Don't show start button for highlight
-rw-r--r-- | src/components/SponsorTimeEditComponent.tsx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/components/SponsorTimeEditComponent.tsx b/src/components/SponsorTimeEditComponent.tsx index eb0109e3..753be97a 100644 --- a/src/components/SponsorTimeEditComponent.tsx +++ b/src/components/SponsorTimeEditComponent.tsx @@ -128,11 +128,13 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo style={timeDisplayStyle} className="sponsorTimeDisplay"> - <span id={"startButton" + this.idSuffix} - className="sponsorNowButton" - onClick={() => this.setTimeTo(0, 0)}> - {chrome.i18n.getMessage("bracketStart")} - </span> + {sponsorTime.actionType !== ActionType.Poi ? ( + <span id={"startButton" + this.idSuffix} + className="sponsorNowButton" + onClick={() => this.setTimeTo(0, 0)}> + {chrome.i18n.getMessage("bracketStart")} + </span> + ): ""} <span id={"nowButton0" + this.idSuffix} className="sponsorNowButton" |