#134 - fill users data for resume #144
| @@ -29,7 +29,8 @@ | ||||
| .flatpickr-day.endRange.prevMonthDay, | ||||
| .flatpickr-day.selected.nextMonthDay, | ||||
| .flatpickr-day.startRange.nextMonthDay, | ||||
| .flatpickr-day.endRange.nextMonthDay { | ||||
| .flatpickr-day.endRange.nextMonthDay, | ||||
| .flatpickr-monthSelect-month.selected { | ||||
|     background: #527ABA; | ||||
|     -webkit-box-shadow: none; | ||||
|     box-shadow: none; | ||||
|   | ||||
| @@ -583,6 +583,7 @@ function addProject() { | ||||
|     tasks: null, | ||||
|     startDate: null, | ||||
|     endDate: null, | ||||
|     current: false, | ||||
|   }) | ||||
| } | ||||
|  | ||||
| @@ -600,6 +601,7 @@ function addEducation() { | ||||
|     fieldOfStudy: null, | ||||
|     startDate: null, | ||||
|     endDate: null, | ||||
|     current: false, | ||||
|   }) | ||||
| } | ||||
|  | ||||
| @@ -621,7 +623,11 @@ function submitResume() { | ||||
|     .transform((data) => ({ | ||||
|       user: data.user?.id, | ||||
|       name: data.name, | ||||
|       education: data.educations, | ||||
|       education: data.educations.map(education => ({ | ||||
|         ...education, | ||||
|         current: !!education.current, | ||||
|         endDate: education.current ? null: education.endDate, | ||||
|       })), | ||||
|       languages: data.languages.map(language => ({ | ||||
|         name: language.name, | ||||
|         level: language.level.level, | ||||
| @@ -630,7 +636,11 @@ function submitResume() { | ||||
|         name: technology.name, | ||||
|         level: technology.level.level, | ||||
|       })), | ||||
|       projects: data.projects, | ||||
|       projects: data.projects.map(project => ({ | ||||
|         ...project, | ||||
|         current: !!project.current, | ||||
|         endDate: project.current ? null : project.endDate, | ||||
|       })), | ||||
|     })) | ||||
|     .post('/resumes') | ||||
| } | ||||
|   | ||||
| @@ -590,6 +590,7 @@ function addProject() { | ||||
|     tasks: null, | ||||
|     startDate: null, | ||||
|     endDate: null, | ||||
|     current: false, | ||||
|   }) | ||||
| } | ||||
|  | ||||
| @@ -607,6 +608,7 @@ function addEducation() { | ||||
|     fieldOfStudy: null, | ||||
|     startDate: null, | ||||
|     endDate: null, | ||||
|     current: false, | ||||
|   }) | ||||
| } | ||||
|  | ||||
| @@ -630,6 +632,7 @@ function submitResume() { | ||||
|       name: data.name, | ||||
|       education: data.educations.map(education => ({ | ||||
|         ...education, | ||||
|         current: !!education.current, | ||||
|         endDate: education.current ? null: education.endDate, | ||||
|       })), | ||||
|       languages: data.languages.map(language => ({ | ||||
| @@ -642,6 +645,7 @@ function submitResume() { | ||||
|       })), | ||||
|       projects: data.projects.map(project => ({ | ||||
|         ...project, | ||||
|         current: !!project.current, | ||||
|         endDate: project.current ? null : project.endDate, | ||||
|       })), | ||||
|     })) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user