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)