diff --git a/src/components/organisms/EditHeuristicsTest.vue b/src/components/organisms/EditHeuristicsTest.vue
index 9307f50c..02f25586 100644
--- a/src/components/organisms/EditHeuristicsTest.vue
+++ b/src/components/organisms/EditHeuristicsTest.vue
@@ -16,7 +16,7 @@
-
+
@@ -61,6 +61,10 @@ export default {
tabClicked(index) {
this.$emit('tabClicked', index)
},
+ change(){
+ this.$emit('change')
+ }
},
+
}
diff --git a/src/views/admin/EditTestView.vue b/src/views/admin/EditTestView.vue
index 88cbea82..89da0482 100644
--- a/src/views/admin/EditTestView.vue
+++ b/src/views/admin/EditTestView.vue
@@ -94,6 +94,7 @@
:object="object"
:index="index"
@tabClicked="setIndex"
+ @change="change=true"
/>
@@ -297,6 +298,7 @@ export default {
},
validateAll() {
this.submit()
+ this.change=false
},
preventNav(event) {
if (!this.change) return