diff --git a/front/MyINPulse-front/src/ApiClasses/Project.ts b/front/MyINPulse-front/src/ApiClasses/Project.ts index 07c49a7..b1064fe 100644 --- a/front/MyINPulse-front/src/ApiClasses/Project.ts +++ b/front/MyINPulse-front/src/ApiClasses/Project.ts @@ -67,6 +67,16 @@ class Project { ) { this._status = value; } + + toObject() { + return { + idProject: this.idProject, + projectName: this.projectName, + creationDate: this.creationDate, + logo: this.logo, + status: this.status, + }; + } } export default Project; diff --git a/front/MyINPulse-front/src/ApiClasses/SectionCell.ts b/front/MyINPulse-front/src/ApiClasses/SectionCell.ts index e5fa52e..acf6912 100644 --- a/front/MyINPulse-front/src/ApiClasses/SectionCell.ts +++ b/front/MyINPulse-front/src/ApiClasses/SectionCell.ts @@ -44,7 +44,7 @@ class SectionCell { this._modificationDate = value; } - toPlainObject() { + toObject() { return { idSectionCell: this._idSectionCell, sectionId: this._sectionId, diff --git a/front/MyINPulse-front/src/components/ProjectComponent.vue b/front/MyINPulse-front/src/components/ProjectComponent.vue index 59eb024..cc92160 100644 --- a/front/MyINPulse-front/src/components/ProjectComponent.vue +++ b/front/MyINPulse-front/src/components/ProjectComponent.vue @@ -3,18 +3,20 @@
Responsable : @@ -90,7 +90,7 @@ const fetchAdminData = (projectId: number, useMock = IS_MOCK_MODE) => { }; onMounted(() => { - const projectId = 1; + const projectId = 101; fetchAdminData(projectId); }); diff --git a/front/MyINPulse-front/src/views/JoinOrCreatProjectForEntrep.vue b/front/MyINPulse-front/src/views/JoinOrCreatProjectForEntrep.vue index dd7affa..941af47 100644 --- a/front/MyINPulse-front/src/views/JoinOrCreatProjectForEntrep.vue +++ b/front/MyINPulse-front/src/views/JoinOrCreatProjectForEntrep.vue @@ -40,6 +40,8 @@