From 15d4a27657f12585b5bca1656f0048654f8f43ef Mon Sep 17 00:00:00 2001 From: Matchu Date: Thu, 11 Mar 2021 08:52:46 -0800 Subject: [PATCH] Link to both new and old manifests in item support --- .../support/ItemLayerSupportModal.js | 37 ++++++++++++++++--- 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/src/app/WardrobePage/support/ItemLayerSupportModal.js b/src/app/WardrobePage/support/ItemLayerSupportModal.js index 3191e21..40f0f0d 100644 --- a/src/app/WardrobePage/support/ItemLayerSupportModal.js +++ b/src/app/WardrobePage/support/ItemLayerSupportModal.js @@ -121,6 +121,14 @@ function ItemLayerSupportModal({ } ); + // TODO: Would be nicer to just learn the correct URL from the server, but we + // don't happen to be saving it, and it would be extra stuff to put on + // the GraphQL request for non-Support users. We could also just try + // loading them, but, ehhh… + const [newManifestUrl, oldManifestUrl] = convertSwfUrlToPossibleManifestUrls( + itemLayer.swfUrl + ); + return ( @@ -146,11 +154,22 @@ function ItemLayerSupportModal({ as="a" size="xs" target="_blank" - href={convertSwfUrlToManifestUrl(itemLayer.swfUrl)} + href={newManifestUrl} colorScheme="teal" > - Manifest + Manifest (new) + + + {itemLayer.canvasMovieLibraryUrl ? (