From e0f985e8170138215b1c68a2b636d8f8f7f75ad9 Mon Sep 17 00:00:00 2001 From: Maxime Lalo Date: Wed, 26 Apr 2023 11:38:47 +0200 Subject: [PATCH] :bug: Wrong path and wrong color view documents --- .../Layouts/Folder/UpdateFolderCollaborators/index.tsx | 4 +++- src/front/Components/Layouts/Folder/ViewDocuments/index.tsx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/front/Components/Layouts/Folder/UpdateFolderCollaborators/index.tsx b/src/front/Components/Layouts/Folder/UpdateFolderCollaborators/index.tsx index 7defa139..ac758fc2 100644 --- a/src/front/Components/Layouts/Folder/UpdateFolderCollaborators/index.tsx +++ b/src/front/Components/Layouts/Folder/UpdateFolderCollaborators/index.tsx @@ -10,6 +10,7 @@ import Link from "next/link"; import { useRouter } from "next/router"; import RadioBox from "@Front/Components/DesignSystem/RadioBox"; import MultiSelect from "@Front/Components/DesignSystem/MultiSelect"; +import Module from "@Front/Config/Module"; type IPropsClass = { selectedFolderUid: string; @@ -35,7 +36,8 @@ class UpdateFolderCollaboratorsClass extends BasePage { this.onSelectedOptionSpecific = this.onSelectedOptionSpecific.bind(this); } public override render(): JSX.Element { - const backwardPath = "/folder/".concat(this.props.selectedFolderUid); + const foldersInformationPath = Module.getInstance().get().modules.pages.Folder.pages.FolderInformation.props.path; + const backwardPath = foldersInformationPath.replace("[folderUid]", this.props.selectedFolderUid); const selectOptions = [ { value: "adazzdsqaad", label: "John Doe" }, { value: "azdzafzad", label: "Jahn Doe" }, diff --git a/src/front/Components/Layouts/Folder/ViewDocuments/index.tsx b/src/front/Components/Layouts/Folder/ViewDocuments/index.tsx index db4ffe72..6a2dd5e3 100644 --- a/src/front/Components/Layouts/Folder/ViewDocuments/index.tsx +++ b/src/front/Components/Layouts/Folder/ViewDocuments/index.tsx @@ -69,7 +69,7 @@ class ViewDocumentsClass extends BasePage { App 23 rue Torus Toulon - + {this.state.selectedDocument.document_type.name}