mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 15:52:47 +01:00
Support hiding items in Custom Item sections, and allow adding items to default Kefin custom item sections
This commit is contained in:
1 parent
9c2838f470
commit
07aff27058
9 files changed
+338
-43
No files matched your search
@@ -1936,7 +1936,8 @@
|
||||
const normalizeTemplate = (value) =>
|
||||
(value || '').replace(/\$\{kefinTweaksRoot\}/g, kefinTweaksRoot).replace(/\$\{serverId\}/g, serverId);
|
||||
|
||||
return sectionConfig.items.map((item, index) => ({
|
||||
const visibleItems = (sectionConfig.items || []).filter((item) => item && item.hidden !== true);
|
||||
return visibleItems.map((item, index) => ({
|
||||
Name: item.Name,
|
||||
Id: item.Id || 'static-' + sectionConfig.id + '-' + index,
|
||||
Type: item.Type || 'Folder',
|
||||
|
||||
@@ -245,7 +245,8 @@
|
||||
.replace(/\$\{kefinTweaksRoot\}/g, kefinTweaksRoot)
|
||||
.replace(/\$\{serverId\}/g, serverId);
|
||||
|
||||
const normalizedItems = sectionConfig.items.map((item, index) => {
|
||||
const visibleItems = sectionConfig.items.filter((item) => item && item.hidden !== true);
|
||||
const normalizedItems = visibleItems.map((item, index) => {
|
||||
const posterUrl = normalizeTemplate(item.posterUrl);
|
||||
const thumbUrl = normalizeTemplate(item.thumbUrl);
|
||||
const squareUrl = normalizeTemplate(item.squareUrl);
|
||||
|
||||
Reference in new issue
Block a user