From 2d3a59502de2e6b7c19c3159be065f540b5cceeb Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 3 Apr 2024 14:05:45 -0300 Subject: content: generateFlashActSidebar: gog help thee --- src/content/dependencies/generateFlashActSidebar.js | 6 +----- src/strings-default.yaml | 5 ++--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/content/dependencies/generateFlashActSidebar.js b/src/content/dependencies/generateFlashActSidebar.js index f7733d5..674d9ff 100644 --- a/src/content/dependencies/generateFlashActSidebar.js +++ b/src/content/dependencies/generateFlashActSidebar.js @@ -4,8 +4,6 @@ export default { contentDependencies: ['linkFlash', 'linkFlashAct', 'linkFlashIndex'], extraDependencies: ['getColors', 'html', 'language', 'wikiData'], - // So help me Gog, the flash sidebar is heavily hard-coded. - sprawl: ({flashActData, flashSideData}) => ({flashActData, flashSideData}), query(sprawl, act, flash) { @@ -37,9 +35,7 @@ export default { currentSideActs.indexOf(act); const fallbackListTerminology = - (currentSideIndex <= 1 - ? 'flashesInThisAct' - : 'entriesInThisSection'); + 'entriesInThisSection'; return { sideNames, diff --git a/src/strings-default.yaml b/src/strings-default.yaml index 44bcbf7..004f867 100644 --- a/src/strings-default.yaml +++ b/src/strings-default.yaml @@ -1069,9 +1069,8 @@ flashIndex: flashSidebar: flashList: - # These two strings are the default ones used when a flash act - # doesn't specify a custom phrasing. - flashesInThisAct: "Flashes in this act" + # This is the default string used when neither a flash act nor its side + # specifies a custom phrasing. entriesInThisSection: "Entries in this section" # -- cgit 1.3.0-6-gf8a5