Skip to content

Commit

Permalink
#2517 - add backed support for approval message
Browse files Browse the repository at this point in the history
  • Loading branch information
rmmayo committed Jan 9, 2025
1 parent 526c5ab commit 461e694
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const rejectOrApproveSkills = (values) => {
emit('do-reject', ids);
});
} else {
return SelfReportService.approve(route.params.projectId, ids/*, values.approvalRequiredMsg*/).then(() => {
return SelfReportService.approve(route.params.projectId, ids, values.approvalRequiredMsg).then(() => {
emit('do-approve', ids);
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ export default {
return axios.get(url, { params })
.then((response) => response.data);
},
approve(projectId, approvalIds) {
approve(projectId, approvalIds, approvalMsg) {
const url = `/admin/projects/${encodeURIComponent(projectId)}/approvals/approve`;
return axios.post(url, { skillApprovalIds: approvalIds })
return axios.post(url, { skillApprovalIds: approvalIds, approvalMessage: approvalMsg })
.then((response) => response.data);
},
reject(projectId, approvalIds, rejectMsg) {
Expand Down

0 comments on commit 461e694

Please sign in to comment.