diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 26ab40a9..141ce495 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -63,7 +63,7 @@ http://localhost:8080/login CURRENT WORK: -- test repeat error message code in errorhandler (throw same error multiple times??) + - Get edit form existing features completely working (also need new reportchooser not based on the original dialog component) - new record entry is a bit fucked up: - Getting validation errors that don't make sense diff --git a/ayanova/src/views/inventory-widget-edit.vue b/ayanova/src/views/inventory-widget-edit.vue index f6f060ef..dc72ede7 100644 --- a/ayanova/src/views/inventory-widget-edit.vue +++ b/ayanova/src/views/inventory-widget-edit.vue @@ -503,8 +503,8 @@ export default { //do the delete vm.formState.loading = true; //No need to delete a new record, just abandon it... - if (this.$route.params.id != 0) { - //this should not get offered for delet but to be safe and clear just in case: + if (this.$route.params.id == 0) { + //this should not get offered for delete but to be safe and clear just in case: JUST_DELETED = true; // navigate backwards vm.$router.go(-1);