aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay <[email protected]>2023-09-24 21:13:43 -0400
committerAjay <[email protected]>2023-09-24 21:13:43 -0400
commit109b7ed5bc8254983d157c62594a3b2f65466941 (patch)
tree8aca616ac0adb678832752e498002302e2d3b0dc
parent3eb853154ffb50cb9156ae9bb91c9f5420b1aa25 (diff)
downloadSponsorBlock-109b7ed5bc8254983d157c62594a3b2f65466941.tar.gz
SponsorBlock-109b7ed5bc8254983d157c62594a3b2f65466941.zip
Don't show start button for highlight
-rw-r--r--src/components/SponsorTimeEditComponent.tsx12
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"