[as] feat: 설치인가 문서 삭제 버튼 기능
This commit is contained in:
@@ -362,7 +362,7 @@ function FloatingActionButtons({
|
||||
</Button>
|
||||
)}
|
||||
{shouldShowButton(INSTL_SNCN_VIEW_BUTTON_ACTION.del) && (
|
||||
<Button color="red" onClick={() => void handleDelClick()} disabled={isProcessing}>
|
||||
<Button color="red" onClick={handleDelClick} disabled={isProcessing}>
|
||||
삭제
|
||||
</Button>
|
||||
)}
|
||||
@@ -503,8 +503,12 @@ async function handleAply(
|
||||
}
|
||||
|
||||
async function handleDel(context: ActionHandlerContext): Promise<void> {
|
||||
// TODO: 삭제 API 호출
|
||||
context.onSuccess?.();
|
||||
try {
|
||||
await instlSncnService.remove(context.data.detDto.instlSncnDocNo);
|
||||
context.onSuccess?.();
|
||||
} catch (error) {
|
||||
context.onError?.(error as Error);
|
||||
}
|
||||
}
|
||||
|
||||
async function handleSplmntCmptn(context: ActionHandlerContext): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user