Parcourir la source

:recycle: tweaing repack on alpha

tags/0.9.0
J il y a 4 ans
Parent
révision
1c1970bae5
1 fichiers modifiés avec 4 ajouts et 3 suppressions
  1. 4
    3
      vue-theme/src/store/modules/artist.js

+ 4
- 3
vue-theme/src/store/modules/artist.js Voir le fichier

28
     })
28
     })
29
     const flatPacked = []
29
     const flatPacked = []
30
     Object.keys(byMaterial).forEach(material => {
30
     Object.keys(byMaterial).forEach(material => {
31
-        flatPacked.push({ slug: material, title: material })
31
+        flatPacked.push({ slug: material, title: material, inbetween: true })
32
         byMaterial[material].forEach(artist => flatPacked.push(artist))
32
         byMaterial[material].forEach(artist => flatPacked.push(artist))
33
     })
33
     })
34
     return flatPacked
34
     return flatPacked
45
         // The first artist you've seen in this batch
45
         // The first artist you've seen in this batch
46
         if(i == 0) {
46
         if(i == 0) {
47
             seen = alphabet.indexOf[firstCharaOfLastWord]
47
             seen = alphabet.indexOf[firstCharaOfLastWord]
48
-            flatPacked.push({ slug: alphabet[seen], title: alphabet[seen] })
48
+            console.log(alphabet[seen], seen)
49
+            flatPacked.push({ slug: alphabet[seen], title: alphabet[seen], inbetween: true })
49
         }
50
         }
50
 
51
 
51
         if (alphabet.indexOf(firstCharaOfLastWord) == seen + 1) {
52
         if (alphabet.indexOf(firstCharaOfLastWord) == seen + 1) {
52
             seen++
53
             seen++
53
-            flatPacked.push({ slug: alphabet[seen], title: alphabet[seen] })
54
+            flatPacked.push({ slug: alphabet[seen], title: alphabet[seen], inbetween: true })
54
         }
55
         }
55
         flatPacked.push(artist)
56
         flatPacked.push(artist)
56
     })
57
     })

Chargement…
Annuler
Enregistrer