Skip to content

Commit

Permalink
fix sync button on click
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueHorn07 committed Dec 6, 2023
1 parent b4883b9 commit 7efb056
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pages/board/rc-students-list.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,17 @@ const RcStudentsListPage = ({ popoRcStdntCnt, totalRcStdntCnt }) => {

<Button
size='tiny'
href={`${PoPoAxios.getUri()}/setting/sync-rc-students-list`}
onClick={() => {
PoPoAxios.get('/setting/sync-rc-students-list')
.then(() => {
alert('싱크에 성공 했습니다.');
window.location.reload();
})
.catch((err) => {
const errMsg = err.response.data.message;
alert(`목록 싱크에 실패했습니다.\n${errMsg}`)
})
}}
>
RC 사생 명단 Sync
</Button>
Expand Down

0 comments on commit 7efb056

Please sign in to comment.