Add confirmation dialog to Subject save

This commit is contained in:
jieun committed 2026-10-20 20:08:37 +09:00
1 parent 3da5840e8b
commit 1ed458a9c1
1 file changed
+7
@@ -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)