Changeset 8e1af9c in Klonkt for src/assets/js/mod/post-edit.js
- Timestamp:
- 08/22/2026 09:11:56 AM (3 weeks ago)
- Branches:
- main
- Children:
- 16fd4fe
- Parents:
- 25dd08f
- git-author:
- Robin <roboburr@…> (08/22/2026 09:11:36 AM)
- git-committer:
- Robin <roboburr@…> (08/22/2026 09:11:56 AM)
- File:
-
- 1 edited
-
src/assets/js/mod/post-edit.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/assets/js/mod/post-edit.js
r25dd08f r8e1af9c 8 8 // Dezelfde regel die de server gebruikt -- zie shared/post-music-type.js voor 9 9 // waarom hij daar staat en niet twee keer. 10 import { afleidenUitInsluitingen } from '../shared/post-music-type.js';10 import { afleidenUitInsluitingen, SOORTEN } from '../shared/post-music-type.js'; 11 11 12 12 // De oude inline scripts draaiden bij ELKE render; een module draait zijn … … 1020 1020 // alleen als ijkpunt onthouden. Anders zou een oude post van type veranderen 1021 1021 // door hem te bekijken. 1022 const VOLGBAAR = new Set(['post', 'album', 'playlist', ' audio']);1022 const VOLGBAAR = new Set(['post', 'album', 'playlist', 'mixtape', 'audio']); 1023 1023 const kindVan = new Map(); 1024 1024 let vorigeAfleiding = null; … … 1028 1028 .then((j) => { 1029 1029 if (j && j.ok && Array.isArray(j.playlists)) { 1030 for (const p of j.playlists) kindVan.set(p.id, p.kind === 'playlist' ? 'playlist' : 'album'); 1030 // De soort ZOALS HIJ IS. Dit was `=== 'playlist' ? 'playlist' : 'album'`, 1031 // en dan ziet de editor een mixtape als album terwijl de server hem 1032 // als mixtape opslaat: het type verspringt onder je handen bij het 1033 // bewaren. SOORTEN is dezelfde lijst die de server gebruikt. 1034 for (const p of j.playlists) kindVan.set(p.id, SOORTEN.includes(p.kind) ? p.kind : 'album'); 1031 1035 } 1032 1036 })
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)