From d4a7fff4028ba9c79b43b6d97377914bb3d7c9e5 Mon Sep 17 00:00:00 2001 From: Waldemar Smirnow Date: Tue, 25 Jun 2024 11:19:24 +0200 Subject: [PATCH 1/2] Hide type and flavor of add asset items To be consistent, the Add-Asset dialog shouldn't show the type and flavor of the items, same as Add-event dialog. --- .../ModalTabsAndPages/EventDetailsAssetsAddAsset.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/components/events/partials/ModalTabsAndPages/EventDetailsAssetsAddAsset.tsx b/src/components/events/partials/ModalTabsAndPages/EventDetailsAssetsAddAsset.tsx index 8d63b5fa76..b46d9d714a 100644 --- a/src/components/events/partials/ModalTabsAndPages/EventDetailsAssetsAddAsset.tsx +++ b/src/components/events/partials/ModalTabsAndPages/EventDetailsAssetsAddAsset.tsx @@ -89,11 +89,6 @@ const EventDetailsAssetsAddAsset = ({ {" "} {translateOverrideFallback(asset, t)} - - {/* eslint-disable-next-line react/jsx-no-comment-textnodes */} - ({asset.type} "{asset.flavorType}// - {asset.flavorSubType}") -
From a2f79464d1be294d76a63d871d521c378b0a2f43 Mon Sep 17 00:00:00 2001 From: Waldemar Smirnow Date: Tue, 25 Jun 2024 11:52:27 +0200 Subject: [PATCH 2/2] New event summary should also hide asset type and flavor --- .../events/partials/wizards/NewEventSummary.tsx | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/components/events/partials/wizards/NewEventSummary.tsx b/src/components/events/partials/wizards/NewEventSummary.tsx index 956809f5e7..d392af54b1 100644 --- a/src/components/events/partials/wizards/NewEventSummary.tsx +++ b/src/components/events/partials/wizards/NewEventSummary.tsx @@ -66,9 +66,6 @@ const NewEventSummary = ({ let uploadAssetsNonTrack: { name: string, translate?: string, - type: string, - flavorType: string, - flavorSubType: string, value: any, }[] = []; for (let i = 0; uploadAssetsOptionsNonTrack.length > i; i++) { @@ -80,9 +77,6 @@ const NewEventSummary = ({ translate: !!displayOverride ? t(displayOverride) : translateOverrideFallback(uploadAssetsOptionsNonTrack[i], t), - type: uploadAssetsOptionsNonTrack[i].type, - flavorType: uploadAssetsOptionsNonTrack[i].flavorType, - flavorSubType: uploadAssetsOptionsNonTrack[i].flavorSubType, value: fieldValue, }); } @@ -135,11 +129,6 @@ const NewEventSummary = ({ {asset.translate} - - {/* eslint-disable-next-line react/jsx-no-comment-textnodes */} - ({asset.type} "{asset.flavorType}// - {asset.flavorSubType}") - {asset.value.name} @@ -167,11 +156,6 @@ const NewEventSummary = ({ {translateOverrideFallback(asset, t, "SHORT")} - - {/* eslint-disable-next-line react/jsx-no-comment-textnodes */} - ({asset.type} "{asset.flavorType}/ - {asset.flavorSubType}") - {asset.file[0].name}