Skip to content

Commit

Permalink
Pouvoir sortir de la modale d'intégration lorsqu'une des validations …
Browse files Browse the repository at this point in the history
…échoue #582
  • Loading branch information
cbrousseau1 committed Dec 12, 2024
1 parent fb07d63 commit 3bda934
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,24 @@ const DatasheetUploadIntegrationDialog: FC<DatasheetUploadIntegrationDialogProps
</div>
)}

{integrationStatus === "at_least_one_failure" && uploadQuery.data?.tags.datasheet_name !== undefined && (
<div className={fr.cx("fr-grid-row")}>
<ButtonsGroup
buttons={[
{
children: "Consulter la fiche de données",
linkProps: routes.datastore_datasheet_view({
datastoreId,
datasheetName: uploadQuery.data?.tags.datasheet_name,
activeTab: DatasheetViewActiveTabEnum.Dataset,
}).link,
},
]}
inlineLayoutWhen="always"
/>
</div>
)}

{integrationStatus === "at_least_one_failure" && uploadQuery.data?.tags?.vectordb_id !== undefined && (
<div className={fr.cx("fr-grid-row")}>
<ButtonsGroup
Expand Down

0 comments on commit 3bda934

Please sign in to comment.