summaryrefslogtreecommitdiff
path: root/day9/task5_vue/src/components/EditFormBox.vue
diff options
context:
space:
mode:
Diffstat (limited to 'day9/task5_vue/src/components/EditFormBox.vue')
-rw-r--r--day9/task5_vue/src/components/EditFormBox.vue6
1 files changed, 5 insertions, 1 deletions
diff --git a/day9/task5_vue/src/components/EditFormBox.vue b/day9/task5_vue/src/components/EditFormBox.vue
index 861a82d..c994656 100644
--- a/day9/task5_vue/src/components/EditFormBox.vue
+++ b/day9/task5_vue/src/components/EditFormBox.vue
@@ -111,7 +111,7 @@
export default {
name: "EditFormBox",
- props: ['formType', 'cancelCallback', 'tableRow'],
+ props: ['formType', 'cancelCallback', 'tableRow', 'showPopup'],
data() {
return {
@@ -178,6 +178,10 @@
headers: {'Content-Type': 'application/json'},
data: JSON.stringify(formData)
})
+ .then(response => {
+ this.cancelCallback();
+ this.showPopup('Database updated successfully');
+ });
}
}
}