From 97d152b69f502b76da998a644f1d5e78129ff649 Mon Sep 17 00:00:00 2001 From: vhande Date: Wed, 22 May 2024 15:56:40 +0200 Subject: [PATCH] Change type name uitpas --- .../Integrations/FormRequests/StoreIntegrationRequest.php | 2 +- resources/ts/Components/IntegrationCard.tsx | 2 +- resources/ts/types/IntegrationType.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Domain/Integrations/FormRequests/StoreIntegrationRequest.php b/app/Domain/Integrations/FormRequests/StoreIntegrationRequest.php index 7ae6ef62f..75bd9c3f1 100644 --- a/app/Domain/Integrations/FormRequests/StoreIntegrationRequest.php +++ b/app/Domain/Integrations/FormRequests/StoreIntegrationRequest.php @@ -18,7 +18,7 @@ public function rules(): array 'subscriptionId' => ['required', 'string'], 'integrationName' => ['required', 'string', 'max:255'], 'description' => ['required', 'string', 'max:255'], - 'website' => ['required_if:integrationType,uitpas-api', 'nullable', 'url:http,https', 'max:255'], + 'website' => ['required_if:integrationType,uitpas', 'nullable', 'url:http,https', 'max:255'], 'firstNameFunctionalContact' => ['required', 'string', 'max:255'], 'lastNameFunctionalContact' => ['required', 'string', 'max:255'], 'emailFunctionalContact' => ['required', 'string', 'email', 'max:255'], diff --git a/resources/ts/Components/IntegrationCard.tsx b/resources/ts/Components/IntegrationCard.tsx index b60bf39ff..69a6e4831 100644 --- a/resources/ts/Components/IntegrationCard.tsx +++ b/resources/ts/Components/IntegrationCard.tsx @@ -29,7 +29,7 @@ type Props = Integration & }; const productTypeToPath = { - "uitpas-api": "/", + uitpas: "/", "entry-api": "/uitdatabank/entry-api/introduction", "search-api": "/uitdatabank/search-api/introduction", widgets: "/widgets/aan-de-slag", diff --git a/resources/ts/types/IntegrationType.ts b/resources/ts/types/IntegrationType.ts index 96bfdb612..18429e83e 100644 --- a/resources/ts/types/IntegrationType.ts +++ b/resources/ts/types/IntegrationType.ts @@ -4,7 +4,7 @@ export const IntegrationType = { EntryApi: "entry-api", SearchApi: "search-api", Widgets: "widgets", - UiTPAS: "uitpas-api", + UiTPAS: "uitpas", } as const; export type IntegrationType = Values;