From da40e6f4d2a06e3d1e93eea8b8b01f180576081b Mon Sep 17 00:00:00 2001 From: Orka Arnest CRUZE Date: Tue, 22 Oct 2024 16:54:14 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20ajout=20bouton=20pour=20acc=C3=A9der=20?= =?UTF-8?q?au=20form=20g=C3=A9n=C3=A9rer=20pyramide=20raster=20#470?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/service/view/ServiceView.tsx | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/assets/entrepot/pages/service/view/ServiceView.tsx b/assets/entrepot/pages/service/view/ServiceView.tsx index e2281e56..f403d829 100644 --- a/assets/entrepot/pages/service/view/ServiceView.tsx +++ b/assets/entrepot/pages/service/view/ServiceView.tsx @@ -32,7 +32,7 @@ const ServiceView: FC = ({ datastoreId, offeringId, datasheetN const serviceQuery = useQuery({ queryKey: RQKeys.datastore_offering(datastoreId, offeringId), - queryFn: () => api.service.getService(datastoreId, offeringId), + queryFn: ({ signal }) => api.service.getService(datastoreId, offeringId, { signal }), staleTime: 60000, }); @@ -135,6 +135,22 @@ const ServiceView: FC = ({ datastoreId, offeringId, datasheetN )} + {serviceQuery.data?.type === OfferingTypeEnum.WMSVECTOR && serviceQuery.data?.status === OfferingStatusEnum.PUBLISHED && ( +
+ +
+ )} +
{initialValues && }