Add brand information to logos and display in LogoModal component

This commit is contained in:
sHa
2025-04-30 16:17:17 +03:00
parent f3051bd3dd
commit c28037e1a7
3 changed files with 40 additions and 2 deletions

View File

@@ -131,7 +131,8 @@ function scanLogos() {
...existingItem,
path: logoPath,
format: format,
disable: typeof existingItem.disable === 'boolean' ? existingItem.disable : false
disable: typeof existingItem.disable === 'boolean' ? existingItem.disable : false,
brand: existingItem.brand || existingItem.name || formatName(file)
};
} else {
// New logo
@@ -139,7 +140,8 @@ function scanLogos() {
name: formatName(file),
path: logoPath,
format: format,
disable: false
disable: false,
brand: formatName(file)
};
}
// Ensure tags field exists and is an array