From 5127e6680bd84e976c87d5bc33ffa5a44a554de0 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 14 Nov 2019 20:42:24 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 2 +- ayanova/src/views/inventory-widget-edit.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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);