Add store logo and app icon uploads to settings page
AvatarUpload component now supports custom category and placeholder icon props. Settings page shows two upload circles: Store Logo (for PDFs/invoices, uses ImageIcon placeholder) and App Icon (for sidebar/ login, uses Building placeholder). Added 'company' to allowed file entity types.
This commit is contained in:
@@ -41,7 +41,7 @@ export const fileRoutes: FastifyPluginAsync = async (app) => {
|
||||
}
|
||||
|
||||
// Validate entityType is a known type
|
||||
const allowedEntityTypes = ['user', 'member', 'member_identifier', 'product', 'rental_agreement', 'repair_ticket', 'repair_note']
|
||||
const allowedEntityTypes = ['user', 'member', 'member_identifier', 'product', 'rental_agreement', 'repair_ticket', 'repair_note', 'company']
|
||||
if (!allowedEntityTypes.includes(entityType)) {
|
||||
throw new ValidationError(`Invalid entityType: ${entityType}`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user