mirror of
https://github.com/shadoll/sLogos.git
synced 2025-12-20 09:31:59 +00:00
Add brand information to logos and display in LogoModal component
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user