mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-09 13:07:05 +03:00
Swap inspect and preview back
This commit is contained in:
@@ -266,6 +266,15 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo
|
|||||||
{chrome.i18n.getMessage("delete")}
|
{chrome.i18n.getMessage("delete")}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
{(!isNaN(segment[1]) && ![ActionType.Poi, ActionType.Full].includes(sponsorTime.actionType))
|
||||||
|
&& sponsorTime.actionType !== ActionType.Chapter ? (
|
||||||
|
<span id={"sponsorTimePreviewButton" + this.idSuffix}
|
||||||
|
className="sponsorTimeEditButton"
|
||||||
|
onClick={(e) => this.previewTime(e.ctrlKey, e.shiftKey)}>
|
||||||
|
{chrome.i18n.getMessage("preview")}
|
||||||
|
</span>
|
||||||
|
): ""}
|
||||||
|
|
||||||
{(!isNaN(segment[1]) && sponsorTime.actionType != ActionType.Full) ? (
|
{(!isNaN(segment[1]) && sponsorTime.actionType != ActionType.Full) ? (
|
||||||
<span id={"sponsorTimeInspectButton" + this.idSuffix}
|
<span id={"sponsorTimeInspectButton" + this.idSuffix}
|
||||||
className="sponsorTimeEditButton"
|
className="sponsorTimeEditButton"
|
||||||
@@ -274,12 +283,12 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo
|
|||||||
</span>
|
</span>
|
||||||
): ""}
|
): ""}
|
||||||
|
|
||||||
{(!isNaN(segment[1]) && ![ActionType.Poi, ActionType.Full].includes(sponsorTime.actionType)) ? (
|
{(!isNaN(segment[1]) && ![ActionType.Poi, ActionType.Full].includes(sponsorTime.actionType))
|
||||||
|
&& sponsorTime.actionType === ActionType.Chapter ? (
|
||||||
<span id={"sponsorTimePreviewButton" + this.idSuffix}
|
<span id={"sponsorTimePreviewButton" + this.idSuffix}
|
||||||
className="sponsorTimeEditButton"
|
className="sponsorTimeEditButton"
|
||||||
onClick={(e) => this.previewTime(e.ctrlKey, e.shiftKey)}>
|
onClick={(e) => this.previewTime(e.ctrlKey, e.shiftKey)}>
|
||||||
{sponsorTime.actionType !== ActionType.Chapter ? chrome.i18n.getMessage("preview")
|
{chrome.i18n.getMessage("End")}
|
||||||
: chrome.i18n.getMessage("End")}
|
|
||||||
</span>
|
</span>
|
||||||
): ""}
|
): ""}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user