Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions backend/app/Http/Actions/Events/DuplicateEventAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function __invoke(int $eventId, DuplicateEventRequest $request): JsonResp
duplicateCapacityAssignments: $request->validated('duplicate_capacity_assignments'),
duplicateCheckInLists: $request->validated('duplicate_check_in_lists'),
duplicateEventCoverImage: $request->validated('duplicate_event_cover_image'),
duplicateTicketLogo: $request->validated('duplicate_ticket_logo'),
duplicateWebhooks: $request->validated('duplicate_webhooks'),
duplicateAffiliates: $request->validated('duplicate_affiliates'),
description: $request->validated('description'),
Expand Down
1 change: 1 addition & 0 deletions backend/app/Http/Request/Event/DuplicateEventRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public function rules(): array
'duplicate_event_cover_image' => ['boolean', 'required'],
'duplicate_webhooks' => ['boolean', 'required'],
'duplicate_affiliates' => ['boolean', 'required'],
'duplicate_ticket_logo' => ['boolean', 'required'],
];

return array_merge($eventValidations, $duplicateValidations);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public function handle(DuplicateEventDataDTO $data): EventDomainObject
duplicateCapacityAssignments: $data->duplicateCapacityAssignments,
duplicateCheckInLists: $data->duplicateCheckInLists,
duplicateEventCoverImage: $data->duplicateEventCoverImage,
duplicateTicketLogo: $data->duplicateTicketLogo,
duplicateWebhooks: $data->duplicateWebhooks,
duplicateAffiliates: $data->duplicateAffiliates,
description: $data->description,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public function __construct(
public bool $duplicateCapacityAssignments = true,
public bool $duplicateCheckInLists = true,
public bool $duplicateEventCoverImage = true,
public bool $duplicateTicketLogo = true,
public bool $duplicateWebhooks = true,
public bool $duplicateAffiliates = true,
public ?string $description = null,
Expand Down
23 changes: 23 additions & 0 deletions backend/app/Services/Domain/Event/DuplicateEventService.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public function duplicateEvent(
bool $duplicateCapacityAssignments = true,
bool $duplicateCheckInLists = true,
bool $duplicateEventCoverImage = true,
bool $duplicateTicketLogo = true,
bool $duplicateWebhooks = true,
bool $duplicateAffiliates = true,
?string $description = null,
Expand Down Expand Up @@ -112,6 +113,10 @@ public function duplicateEvent(
$this->cloneEventCoverImage($event, $newEvent->getId());
}

if ($duplicateTicketLogo) {
$this->cloneTicketLogo($event, $newEvent->getId());
}

if ($duplicateWebhooks) {
$this->duplicateWebhooks($event, $newEvent);
}
Expand Down Expand Up @@ -329,6 +334,24 @@ private function cloneEventCoverImage(EventDomainObject $event, int $newEventId)
}
}

private function cloneTicketLogo(EventDomainObject $event, int $newEventId): void
{
/** @var ImageDomainObject $ticketLogo */
$ticketLogo = $event->getImages()?->first(fn(ImageDomainObject $image) => $image->getType() === ImageType::TICKET_LOGO->name);
if ($ticketLogo) {
$this->imageRepository->create([
'entity_id' => $newEventId,
'entity_type' => EventDomainObject::class,
'type' => ImageType::TICKET_LOGO->name,
'disk' => $ticketLogo->getDisk(),
'path' => $ticketLogo->getPath(),
'filename' => $ticketLogo->getFileName(),
'size' => $ticketLogo->getSize(),
'mime_type' => $ticketLogo->getMimeType(),
]);
}
}

private function getEventWithRelations(string $eventId, string $accountId): EventDomainObject
{
return $this->eventRepository
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/modals/DuplicateEventModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const DuplicateEventModal = ({onClose, eventId}: DuplicateEventModalProps
{ key: 'duplicate_capacity_assignments', label: t`Capacity Assignments` },
{ key: 'duplicate_check_in_lists', label: t`Check-In Lists` },
{ key: 'duplicate_event_cover_image', label: t`Event Cover Image` },
{ key: 'duplicate_ticket_logo', label: t`Ticket Logo` },
{ key: 'duplicate_webhooks', label: t`Webhooks` },
{ key: 'duplicate_affiliates', label: t`Affiliates` },
];
Expand All @@ -45,6 +46,7 @@ export const DuplicateEventModal = ({onClose, eventId}: DuplicateEventModalProps
duplicate_capacity_assignments: true,
duplicate_check_in_lists: true,
duplicate_event_cover_image: true,
duplicate_ticket_logo: true,
duplicate_webhooks: true,
duplicate_affiliates: true,
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/locales/de.js

Large diffs are not rendered by default.

32 changes: 18 additions & 14 deletions frontend/src/locales/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ msgid "Affiliate updated successfully"
msgstr "Partner erfolgreich aktualisiert"

#: src/components/layouts/Event/index.tsx:107
#: src/components/modals/DuplicateEventModal/index.tsx:32
#: src/components/modals/DuplicateEventModal/index.tsx:33
#: src/components/routes/event/Affiliates/index.tsx:61
msgid "Affiliates"
msgstr "Partner"
Expand Down Expand Up @@ -1930,7 +1930,7 @@ msgstr "Webhook löschen"

#: src/components/forms/ProductForm/index.tsx:258
#: src/components/forms/TaxAndFeeForm/index.tsx:81
#: src/components/modals/DuplicateEventModal/index.tsx:113
#: src/components/modals/DuplicateEventModal/index.tsx:115
#: src/components/routes/event/Settings/Sections/EventDetailsForm/index.tsx:93
#: src/components/routes/organizer/Settings/Sections/BasicSettings/index.tsx:86
msgid "Description"
Expand All @@ -1940,7 +1940,7 @@ msgstr "Beschreibung"
msgid "Description for check-in staff"
msgstr "Beschreibung für das Eincheckpersonal"

#: src/components/modals/DuplicateEventModal/index.tsx:147
#: src/components/modals/DuplicateEventModal/index.tsx:149
msgid "Deselect All"
msgstr "Alle abwählen"

Expand Down Expand Up @@ -2046,12 +2046,12 @@ msgstr ""
msgid "Duplicate event"
msgstr "Ereignis duplizieren"

#: src/components/modals/DuplicateEventModal/index.tsx:98
#: src/components/modals/DuplicateEventModal/index.tsx:175
#: src/components/modals/DuplicateEventModal/index.tsx:100
#: src/components/modals/DuplicateEventModal/index.tsx:177
msgid "Duplicate Event"
msgstr "Ereignis duplizieren"

#: src/components/modals/DuplicateEventModal/index.tsx:133
#: src/components/modals/DuplicateEventModal/index.tsx:135
msgid "Duplicate Options"
msgstr "Optionen duplizieren"

Expand Down Expand Up @@ -2297,7 +2297,7 @@ msgstr "Diese Vorlage für das Senden von E-Mails aktivieren"
msgid "Enabled"
msgstr "Aktiviert"

#: src/components/modals/DuplicateEventModal/index.tsx:127
#: src/components/modals/DuplicateEventModal/index.tsx:129
#: src/components/routes/event/Settings/Sections/EventDetailsForm/index.tsx:107
msgid "End Date"
msgstr "Endtermin"
Expand Down Expand Up @@ -2439,7 +2439,7 @@ msgstr "Veranstaltungsdetails"
msgid "Event Details"
msgstr "Veranstaltungsdetails"

#: src/components/modals/DuplicateEventModal/index.tsx:87
#: src/components/modals/DuplicateEventModal/index.tsx:89
msgid "Event duplicated successfully"
msgstr "Ereignis erfolgreich dupliziert"

Expand Down Expand Up @@ -3642,7 +3642,7 @@ msgstr "Ich habe das Element platziert …"
#: src/components/forms/CheckInListForm/index.tsx:20
#: src/components/forms/ProductForm/index.tsx:253
#: src/components/forms/TaxAndFeeForm/index.tsx:61
#: src/components/modals/DuplicateEventModal/index.tsx:107
#: src/components/modals/DuplicateEventModal/index.tsx:109
#: src/components/routes/account/ManageAccount/sections/AccountSettings/index.tsx:63
#: src/components/routes/event/Settings/Sections/EventDetailsForm/index.tsx:75
#: src/components/routes/product-widget/OrderSummaryAndProducts/index.tsx:107
Expand Down Expand Up @@ -5208,7 +5208,7 @@ msgstr "{0} auswählen"
msgid "Select a category"
msgstr "Kategorie auswählen"

#: src/components/modals/DuplicateEventModal/index.tsx:136
#: src/components/modals/DuplicateEventModal/index.tsx:138
msgid "Select All"
msgstr "Alle auswählen"

Expand Down Expand Up @@ -5604,7 +5604,7 @@ msgstr "Sport"
msgid "Standard product with a fixed price"
msgstr "Standardprodukt mit festem Preis"

#: src/components/modals/DuplicateEventModal/index.tsx:122
#: src/components/modals/DuplicateEventModal/index.tsx:124
#: src/components/routes/event/Settings/Sections/EventDetailsForm/index.tsx:102
msgid "Start Date"
msgstr "Startdatum"
Expand Down Expand Up @@ -5816,7 +5816,7 @@ msgid "Suite 100"
msgstr "Suite 100"

#: src/components/modals/CreateEventModal/index.tsx:177
#: src/components/modals/DuplicateEventModal/index.tsx:108
#: src/components/modals/DuplicateEventModal/index.tsx:110
#: src/components/routes/event/Settings/Sections/EventDetailsForm/index.tsx:76
msgid "Summer Music Festival {0}"
msgstr "Sommermusikfestival {0}"
Expand Down Expand Up @@ -6303,6 +6303,10 @@ msgstr "Ticketinhaber"
msgid "Ticket ID"
msgstr "Ticket-ID"

#: src/components/modals/DuplicateEventModal/index.tsx:31
msgid "Ticket Logo"
msgstr "Ticket-Logo"

#: src/components/common/Editor/Controls/InsertLiquidVariableControl.tsx:58
msgid "Ticket Name"
msgstr "Ticketname"
Expand Down Expand Up @@ -6879,7 +6883,7 @@ msgid "Webhook will send notifications"
msgstr "Webhook sendet Benachrichtigungen"

#: src/components/layouts/Event/index.tsx:113
#: src/components/modals/DuplicateEventModal/index.tsx:31
#: src/components/modals/DuplicateEventModal/index.tsx:32
#: src/components/routes/event/Webhooks/index.tsx:30
msgid "Webhooks"
msgstr "Webhooks"
Expand Down Expand Up @@ -7056,7 +7060,7 @@ msgstr "Arbeiten"
#: src/components/modals/CreateProductModal/index.tsx:86
#: src/components/modals/CreatePromoCodeModal/index.tsx:56
#: src/components/modals/CreateQuestionModal/index.tsx:74
#: src/components/modals/DuplicateEventModal/index.tsx:175
#: src/components/modals/DuplicateEventModal/index.tsx:177
#: src/components/modals/DuplicateProductModal/index.tsx:113
#: src/components/modals/EditProductCategoryModal/index.tsx:70
#: src/components/modals/EditProductModal/index.tsx:108
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/locales/en.js

Large diffs are not rendered by default.

32 changes: 18 additions & 14 deletions frontend/src/locales/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ msgid "Affiliate updated successfully"
msgstr "Affiliate updated successfully"

#: src/components/layouts/Event/index.tsx:107
#: src/components/modals/DuplicateEventModal/index.tsx:32
#: src/components/modals/DuplicateEventModal/index.tsx:33
#: src/components/routes/event/Affiliates/index.tsx:61
msgid "Affiliates"
msgstr "Affiliates"
Expand Down Expand Up @@ -1930,7 +1930,7 @@ msgstr "Delete webhook"

#: src/components/forms/ProductForm/index.tsx:258
#: src/components/forms/TaxAndFeeForm/index.tsx:81
#: src/components/modals/DuplicateEventModal/index.tsx:113
#: src/components/modals/DuplicateEventModal/index.tsx:115
#: src/components/routes/event/Settings/Sections/EventDetailsForm/index.tsx:93
#: src/components/routes/organizer/Settings/Sections/BasicSettings/index.tsx:86
msgid "Description"
Expand All @@ -1940,7 +1940,7 @@ msgstr "Description"
msgid "Description for check-in staff"
msgstr "Description for check-in staff"

#: src/components/modals/DuplicateEventModal/index.tsx:147
#: src/components/modals/DuplicateEventModal/index.tsx:149
msgid "Deselect All"
msgstr "Deselect All"

Expand Down Expand Up @@ -2046,12 +2046,12 @@ msgstr ""
msgid "Duplicate event"
msgstr "Duplicate event"

#: src/components/modals/DuplicateEventModal/index.tsx:98
#: src/components/modals/DuplicateEventModal/index.tsx:175
#: src/components/modals/DuplicateEventModal/index.tsx:100
#: src/components/modals/DuplicateEventModal/index.tsx:177
msgid "Duplicate Event"
msgstr "Duplicate Event"

#: src/components/modals/DuplicateEventModal/index.tsx:133
#: src/components/modals/DuplicateEventModal/index.tsx:135
msgid "Duplicate Options"
msgstr "Duplicate Options"

Expand Down Expand Up @@ -2297,7 +2297,7 @@ msgstr "Enable this template for sending emails"
msgid "Enabled"
msgstr "Enabled"

#: src/components/modals/DuplicateEventModal/index.tsx:127
#: src/components/modals/DuplicateEventModal/index.tsx:129
#: src/components/routes/event/Settings/Sections/EventDetailsForm/index.tsx:107
msgid "End Date"
msgstr "End Date"
Expand Down Expand Up @@ -2439,7 +2439,7 @@ msgstr "Event details"
msgid "Event Details"
msgstr "Event Details"

#: src/components/modals/DuplicateEventModal/index.tsx:87
#: src/components/modals/DuplicateEventModal/index.tsx:89
msgid "Event duplicated successfully"
msgstr "Event duplicated successfully"

Expand Down Expand Up @@ -3644,7 +3644,7 @@ msgstr "Nam placerat elementum..."
#: src/components/forms/CheckInListForm/index.tsx:20
#: src/components/forms/ProductForm/index.tsx:253
#: src/components/forms/TaxAndFeeForm/index.tsx:61
#: src/components/modals/DuplicateEventModal/index.tsx:107
#: src/components/modals/DuplicateEventModal/index.tsx:109
#: src/components/routes/account/ManageAccount/sections/AccountSettings/index.tsx:63
#: src/components/routes/event/Settings/Sections/EventDetailsForm/index.tsx:75
#: src/components/routes/product-widget/OrderSummaryAndProducts/index.tsx:107
Expand Down Expand Up @@ -5212,7 +5212,7 @@ msgstr "Select {0}"
msgid "Select a category"
msgstr "Select a category"

#: src/components/modals/DuplicateEventModal/index.tsx:136
#: src/components/modals/DuplicateEventModal/index.tsx:138
msgid "Select All"
msgstr "Select All"

Expand Down Expand Up @@ -5608,7 +5608,7 @@ msgstr "Sports"
msgid "Standard product with a fixed price"
msgstr "Standard product with a fixed price"

#: src/components/modals/DuplicateEventModal/index.tsx:122
#: src/components/modals/DuplicateEventModal/index.tsx:124
#: src/components/routes/event/Settings/Sections/EventDetailsForm/index.tsx:102
msgid "Start Date"
msgstr "Start Date"
Expand Down Expand Up @@ -5820,7 +5820,7 @@ msgid "Suite 100"
msgstr "Suite 100"

#: src/components/modals/CreateEventModal/index.tsx:177
#: src/components/modals/DuplicateEventModal/index.tsx:108
#: src/components/modals/DuplicateEventModal/index.tsx:110
#: src/components/routes/event/Settings/Sections/EventDetailsForm/index.tsx:76
msgid "Summer Music Festival {0}"
msgstr "Summer Music Festival {0}"
Expand Down Expand Up @@ -6307,6 +6307,10 @@ msgstr "Ticket holders"
msgid "Ticket ID"
msgstr "Ticket ID"

#: src/components/modals/DuplicateEventModal/index.tsx:31
msgid "Ticket Logo"
msgstr "Ticket Logo"

#: src/components/common/Editor/Controls/InsertLiquidVariableControl.tsx:58
msgid "Ticket Name"
msgstr "Ticket Name"
Expand Down Expand Up @@ -6883,7 +6887,7 @@ msgid "Webhook will send notifications"
msgstr "Webhook will send notifications"

#: src/components/layouts/Event/index.tsx:113
#: src/components/modals/DuplicateEventModal/index.tsx:31
#: src/components/modals/DuplicateEventModal/index.tsx:32
#: src/components/routes/event/Webhooks/index.tsx:30
msgid "Webhooks"
msgstr "Webhooks"
Expand Down Expand Up @@ -7060,7 +7064,7 @@ msgstr "Working"
#: src/components/modals/CreateProductModal/index.tsx:86
#: src/components/modals/CreatePromoCodeModal/index.tsx:56
#: src/components/modals/CreateQuestionModal/index.tsx:74
#: src/components/modals/DuplicateEventModal/index.tsx:175
#: src/components/modals/DuplicateEventModal/index.tsx:177
#: src/components/modals/DuplicateProductModal/index.tsx:113
#: src/components/modals/EditProductCategoryModal/index.tsx:70
#: src/components/modals/EditProductModal/index.tsx:108
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/locales/es.js

Large diffs are not rendered by default.

Loading
Loading