Hero: planning en hero-brede aan/uit verwijderd (hero altijd aan, live zodra er een titel is); migratie, API, admin, tests en docs bijgewerkt
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -27,9 +27,6 @@ export const emptyHero = (): HeroAdminDto => ({
|
||||
lead: null,
|
||||
display: 'single',
|
||||
buttons: [],
|
||||
isActive: true,
|
||||
startsAt: null,
|
||||
endsAt: null,
|
||||
slides: [],
|
||||
isLive: false,
|
||||
updatedAt: null,
|
||||
@@ -106,10 +103,7 @@ export const heroHandlers = [
|
||||
lead: body.lead,
|
||||
display: body.display,
|
||||
buttons: body.buttons,
|
||||
isActive: body.isActive,
|
||||
startsAt: body.startsAt,
|
||||
endsAt: body.endsAt,
|
||||
isLive: body.isActive && body.title.trim() !== '',
|
||||
isLive: body.title.trim() !== '',
|
||||
updatedAt: '2026-11-16T12:00:00Z',
|
||||
slides: body.slides.map((s, i) => ({
|
||||
id: s.id ?? `20000000-0000-0000-0000-00000000000${i}`,
|
||||
|
||||
Reference in New Issue
Block a user