Skip to content

Commit

Permalink
fix: compléter le fil d'ariane de la route de reprise d'intégration #584
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrousseau1 committed Jan 10, 2025
1 parent 4bab95e commit 1de6fbd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,13 @@ const UnfinishedUploadList: FC<UnfinishedUploadListProps> = ({ datastoreId, uplo
) : (
<Button
className={fr.cx("fr-mr-2w")}
linkProps={routes.datastore_datasheet_upload_integration({ datastoreId, uploadId: upload._id }).link}
linkProps={
routes.datastore_datasheet_upload_integration({
datastoreId,
uploadId: upload._id,
datasheetName: upload.tags.datasheet_name,
}).link
}
>
{"Reprendre l'intégration"}
</Button>
Expand Down
6 changes: 6 additions & 0 deletions assets/modules/entrepot/breadcrumbs/Breadcrumb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ const getBreadcrumb = (route: Route<typeof routes>, datastore?: Datastore): Brea
{ label: datastore?.name, linkProps: routes.datasheet_list({ datastoreId: route.params.datastoreId }).link },
],
];
if ("datasheetName" in route.params && route.params.datasheetName) {
defaultProps.segments.push({
label: route.params.datasheetName,
linkProps: routes.datastore_datasheet_view({ datastoreId: route.params.datastoreId, datasheetName: route.params.datasheetName }).link,
});
}
return { ...defaultProps, currentPageLabel: t("datastore_datasheet_upload_integration") };
case "datastore_datasheet_view":
defaultProps.segments = [
Expand Down

0 comments on commit 1de6fbd

Please sign in to comment.