« get me outta code hell

content: generateFlashActSidebar: gog help thee - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-04-03 14:05:45 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-04-03 14:05:45 -0300
commit2d3a59502de2e6b7c19c3159be065f540b5cceeb (patch)
tree62d2f21b8a9ff080c12ec6188a22f83cedfb81ef /src
parent27e67da7b6f31b6d6da52a7ad09a0da1acc06e03 (diff)
content: generateFlashActSidebar: gog help thee
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generateFlashActSidebar.js6
-rw-r--r--src/strings-default.yaml5
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"
 
 #