make the search bar yell at you

This commit is contained in:
MeowcaTheoRange 2024-06-11 01:27:36 -05:00
parent 5bec55e0c2
commit 81ecffbf00
2 changed files with 19 additions and 1 deletions

View file

@ -5,6 +5,7 @@ export default new Map([
floors_header: "Floors",
date_starting: "Starting",
date_started: "Started",
date_ended: "Ended",
date_summary: (prefix, time) => `${prefix} ${time}`,
list_index: (index) => `, ${index}`,
parenthesis: (content) => `(${content})`,
@ -40,6 +41,7 @@ Thanks to:
- Captain Zach @ https://discord.gg/2dcon`,
search_dialog_close_button: "Close search",
search_dialog_header_title: "Search Events",
search_dialog_search_bar: "Type search query here...",
search_dialog_search_tags: "Tags",
search_dialog_search_by: "Search By",
search_filter_buttons: {

View file

@ -307,6 +307,8 @@ export class UIManager {
currentLocalization.search_dialog_search_by;
this.uiElements.searchDialogSearchTags.textContent =
currentLocalization.search_dialog_search_tags;
this.uiElements.searchDialogBarInput.placeholder =
currentLocalization.search_dialog_search_bar;
const tags = this.mainmanager.getManagerVariable("tag", "allTags");
@ -527,7 +529,7 @@ export class UIManager {
let datePrefix;
if (eventEnded) {
return; // Don't display this event
datePrefix = currentLocalization.date_ended;
} else if (eventStarted) {
datePrefix = currentLocalization.date_started;
} else {
@ -618,6 +620,13 @@ export class UIManager {
getMinutesDifference(eventDateStart, eventDateEnd)
)
);
eventListContainerSummaryLength.title = eventDateEnd.toLocaleString(
this.mainmanager.getCurrentLangCode(),
{
dateStyle: "short",
timeStyle: "short",
}
);
eventListContainerSummarySmall.appendChild(
eventListContainerSummaryLength
@ -870,6 +879,13 @@ export class UIManager {
getMinutesDifference(eventDateStart, eventDateEnd)
)
);
eventListContainerSummaryLength.title = eventDateEnd.toLocaleString(
this.mainmanager.getCurrentLangCode(),
{
dateStyle: "short",
timeStyle: "short",
}
);
eventListContainerSummarySmall.appendChild(
eventListContainerSummaryLength