aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay <[email protected]>2023-12-22 12:58:40 -0500
committerAjay <[email protected]>2023-12-22 12:58:40 -0500
commit67c2a5bae76e8c81a6075f4becacead42568c18e (patch)
tree80d02ce448e0402822b25c815b58df6d2634aca6
parent9d0e42de7642202656538b2178fb365a932501b9 (diff)
downloadSponsorBlock-67c2a5bae76e8c81a6075f4becacead42568c18e.tar.gz
SponsorBlock-67c2a5bae76e8c81a6075f4becacead42568c18e.zip
Add timestamp to multi segment vote box
-rw-r--r--src/components/SkipNoticeComponent.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/SkipNoticeComponent.tsx b/src/components/SkipNoticeComponent.tsx
index 5557edcb..7487bdc5 100644
--- a/src/components/SkipNoticeComponent.tsx
+++ b/src/components/SkipNoticeComponent.tsx
@@ -14,6 +14,7 @@ import PencilSvg from "../svg-icons/pencil_svg";
import { downvoteButtonColor, SkipNoticeAction } from "../utils/noticeUtils";
import { generateUserID } from "../../maze-utils/src/setup";
import { keybindToString } from "../../maze-utils/src/config";
+import { getFormattedTime } from "../../maze-utils/src/formating";
enum SkipButtonState {
Undo, // Unskip
@@ -388,7 +389,8 @@ class SkipNoticeComponent extends React.Component<SkipNoticeProps, SkipNoticeSta
color: this.getSubmissionChooserColor(i)}}
onClick={() => this.performAction(i)}
key={"submission" + i + this.segments[i].category + this.idSuffix}>
- {(i + 1) + ". " + chrome.i18n.getMessage("category_" + this.segments[i].category)}
+ {`${(i + 1)}. ${chrome.i18n.getMessage("category_" +
+ this.segments[i].category)} (${getFormattedTime(this.segments[i].segment[0])})`}
</button>
);
}