-
abbrechen
+
@@ -49,6 +51,11 @@ export default defineComponent({
props: {
id: String,
},
+ data() {
+ return {
+ change_detect: false as boolean,
+ };
+ },
computed: {
...mapState(useQualificationStore, ["qualification", "updateStatus", "loadingSingle"]),
},
@@ -58,6 +65,10 @@ export default defineComponent({
},
methods: {
...mapActions(useQualificationStore, ["fetchQualificationById", "updateActiveQualification", "resetStatus"]),
+ detectChange() {
+ this.resetStatus();
+ this.change_detect = true;
+ },
triggerUpdate(e: any) {
let formData = e.target.elements;
let updateQualification: CreateOrUpdateQualificationViewModel = {
@@ -65,6 +76,7 @@ export default defineComponent({
description: formData.description.value,
};
this.updateActiveQualification(updateQualification);
+ this.change_detect = false;
},
},
});
diff --git a/src/views/admin/user/RoleEdit.vue b/src/views/admin/user/RoleEdit.vue
index bd1ba9c..ead3ebe 100644
--- a/src/views/admin/user/RoleEdit.vue
+++ b/src/views/admin/user/RoleEdit.vue
@@ -1,7 +1,7 @@
- zurück zur Liste
+ zurück zur Liste (abbrechen)