From 1ed458a9c18c06bee42d7a94cc948ec989817f3b Mon Sep 17 00:00:00 2001 From: jieun Date: Tue, 20 Oct 2026 20:08:37 +0900 Subject: [PATCH] Add confirmation dialog to Subject save --- .../app/entities/subject/subject-update.component.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/webapp/app/entities/subject/subject-update.component.ts b/src/main/webapp/app/entities/subject/subject-update.component.ts index b2a4c2a..2e641eb 100644 --- a/src/main/webapp/app/entities/subject/subject-update.component.ts +++ b/src/main/webapp/app/entities/subject/subject-update.component.ts @@ -70,7 +70,14 @@ export default defineComponent({ created(): void {}, methods: { save(): void { + const message = this.subject.id ? '이 과목의 수정 내용을 저장하시겠습니까?' : '새 과목을 등록하시겠습니까?'; + + if (!window.confirm(message)) { + return; + } + this.isSaving = true; + if (this.subject.id) { this.subjectService() .update(this.subject)