make the search bar yell at you
This commit is contained in:
parent
5bec55e0c2
commit
81ecffbf00
2 changed files with 19 additions and 1 deletions
|
@ -5,6 +5,7 @@ export default new Map([
|
||||||
floors_header: "Floors",
|
floors_header: "Floors",
|
||||||
date_starting: "Starting",
|
date_starting: "Starting",
|
||||||
date_started: "Started",
|
date_started: "Started",
|
||||||
|
date_ended: "Ended",
|
||||||
date_summary: (prefix, time) => `${prefix} ${time}`,
|
date_summary: (prefix, time) => `${prefix} ${time}`,
|
||||||
list_index: (index) => `, ${index}`,
|
list_index: (index) => `, ${index}`,
|
||||||
parenthesis: (content) => `(${content})`,
|
parenthesis: (content) => `(${content})`,
|
||||||
|
@ -40,6 +41,7 @@ Thanks to:
|
||||||
- Captain Zach @ https://discord.gg/2dcon`,
|
- Captain Zach @ https://discord.gg/2dcon`,
|
||||||
search_dialog_close_button: "Close search",
|
search_dialog_close_button: "Close search",
|
||||||
search_dialog_header_title: "Search Events",
|
search_dialog_header_title: "Search Events",
|
||||||
|
search_dialog_search_bar: "Type search query here...",
|
||||||
search_dialog_search_tags: "Tags",
|
search_dialog_search_tags: "Tags",
|
||||||
search_dialog_search_by: "Search By",
|
search_dialog_search_by: "Search By",
|
||||||
search_filter_buttons: {
|
search_filter_buttons: {
|
||||||
|
|
|
@ -307,6 +307,8 @@ export class UIManager {
|
||||||
currentLocalization.search_dialog_search_by;
|
currentLocalization.search_dialog_search_by;
|
||||||
this.uiElements.searchDialogSearchTags.textContent =
|
this.uiElements.searchDialogSearchTags.textContent =
|
||||||
currentLocalization.search_dialog_search_tags;
|
currentLocalization.search_dialog_search_tags;
|
||||||
|
this.uiElements.searchDialogBarInput.placeholder =
|
||||||
|
currentLocalization.search_dialog_search_bar;
|
||||||
|
|
||||||
const tags = this.mainmanager.getManagerVariable("tag", "allTags");
|
const tags = this.mainmanager.getManagerVariable("tag", "allTags");
|
||||||
|
|
||||||
|
@ -527,7 +529,7 @@ export class UIManager {
|
||||||
let datePrefix;
|
let datePrefix;
|
||||||
|
|
||||||
if (eventEnded) {
|
if (eventEnded) {
|
||||||
return; // Don't display this event
|
datePrefix = currentLocalization.date_ended;
|
||||||
} else if (eventStarted) {
|
} else if (eventStarted) {
|
||||||
datePrefix = currentLocalization.date_started;
|
datePrefix = currentLocalization.date_started;
|
||||||
} else {
|
} else {
|
||||||
|
@ -618,6 +620,13 @@ export class UIManager {
|
||||||
getMinutesDifference(eventDateStart, eventDateEnd)
|
getMinutesDifference(eventDateStart, eventDateEnd)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
eventListContainerSummaryLength.title = eventDateEnd.toLocaleString(
|
||||||
|
this.mainmanager.getCurrentLangCode(),
|
||||||
|
{
|
||||||
|
dateStyle: "short",
|
||||||
|
timeStyle: "short",
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
eventListContainerSummarySmall.appendChild(
|
eventListContainerSummarySmall.appendChild(
|
||||||
eventListContainerSummaryLength
|
eventListContainerSummaryLength
|
||||||
|
@ -870,6 +879,13 @@ export class UIManager {
|
||||||
getMinutesDifference(eventDateStart, eventDateEnd)
|
getMinutesDifference(eventDateStart, eventDateEnd)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
eventListContainerSummaryLength.title = eventDateEnd.toLocaleString(
|
||||||
|
this.mainmanager.getCurrentLangCode(),
|
||||||
|
{
|
||||||
|
dateStyle: "short",
|
||||||
|
timeStyle: "short",
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
eventListContainerSummarySmall.appendChild(
|
eventListContainerSummarySmall.appendChild(
|
||||||
eventListContainerSummaryLength
|
eventListContainerSummaryLength
|
||||||
|
|
Loading…
Reference in a new issue