diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index 2a859190..61fda32d 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -656,6 +656,9 @@ "message": "To submit segments with the category of \"{0}\", you must enable it in the options. You will be redirected to the options now.", "description": "Used when submitting segments to only let them select a certain category if they have it enabled in the options." }, + "poiOnlyOneSegment": { + "message": "Warning: This type of segment can have a maximum of one active at a time. Submitting multiple will cause a random one to be shown." + }, "youMustSelectACategory": { "message": "You must select a category for all segments you are submitting!" }, diff --git a/src/components/SponsorTimeEditComponent.tsx b/src/components/SponsorTimeEditComponent.tsx index 673cba3c..7d922b9e 100644 --- a/src/components/SponsorTimeEditComponent.tsx +++ b/src/components/SponsorTimeEditComponent.tsx @@ -279,6 +279,11 @@ class SponsorTimeEditComponent extends React.Component segment.category === event.target.value && i !== this.props.index)) { + alert(chrome.i18n.getMessage("poiOnlyOneSegment")); + } } this.saveEditTimes();