Skip to content

Commit

Permalink
feat: reload
Browse files Browse the repository at this point in the history
  • Loading branch information
th-release committed Aug 19, 2023
1 parent 6849bdc commit bf6245f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/Instances.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ const Instances: FC = () => {
method: 'DELETE'
}).then(() => { alert('인스턴스가 삭제되었습니다.') })
.catch(() => { alert('인스턴스를 삭제하는 도중 에러가 발생했습니다.') })
window.location.reload()
}
}

Expand All @@ -91,6 +92,7 @@ const Instances: FC = () => {
method: 'POST'
}).then(() => { alert('인스턴스가 재시작 되었습니다.') })
.catch(() => { alert('인스턴스를 재시작하는 도중 에러가 발생했습니다.') })
window.location.reload()
}
}

Expand All @@ -100,6 +102,7 @@ const Instances: FC = () => {
method: 'POST'
}).then(() => { alert('인스턴스가 초기화 되었습니다.') })
.catch(() => { alert('인스턴스를 초기화하는 도중 에러가 발생했습니다.') })
window.location.reload()
}
}

Expand Down
3 changes: 3 additions & 0 deletions src/pages/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const Search: FC = () => {
method: 'DELETE'
}).then(() => { alert('인스턴스가 삭제되었습니다.') })
.catch(() => { alert('인스턴스를 삭제하는 도중 에러가 발생했습니다.') })
window.location.reload()
}
}

Expand All @@ -63,6 +64,7 @@ const Search: FC = () => {
method: 'POST'
}).then(() => { alert('인스턴스가 재시작 되었습니다.') })
.catch(() => { alert('인스턴스를 재시작하는 도중 에러가 발생했습니다.') })
window.location.reload()
}
}

Expand All @@ -72,6 +74,7 @@ const Search: FC = () => {
method: 'POST'
}).then(() => { alert('인스턴스가 초기화 되었습니다.') })
.catch(() => { alert('인스턴스를 초기화하는 도중 에러가 발생했습니다.') })
window.location.reload()
}
}

Expand Down

0 comments on commit bf6245f

Please sign in to comment.