From 1a6dac33e50bbc91474ed13941ef46bf110afa15 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 13 Nov 2019 23:14:40 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 1 + ayanova/src/api/errorhandler.js | 2 +- ayanova/src/views/inventory-widget-edit.vue | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 34e30b5b..3a5c0007 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -63,6 +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/api/errorhandler.js b/ayanova/src/api/errorhandler.js index 6832f8dd..60717d19 100644 --- a/ayanova/src/api/errorhandler.js +++ b/ayanova/src/api/errorhandler.js @@ -10,7 +10,7 @@ var lastMessageHash = 0; function dealWithError(msg, vm) { //Check if this is the same message again as last time to avoid //repetitive loops of useless messages - var newHash = window.$gz.gzutil.quickHash(msg); + var newHash = window.$gz.util.quickHash(msg); if (newHash == lastMessageHash) { return; } diff --git a/ayanova/src/views/inventory-widget-edit.vue b/ayanova/src/views/inventory-widget-edit.vue index f6f060ef..45539cde 100644 --- a/ayanova/src/views/inventory-widget-edit.vue +++ b/ayanova/src/views/inventory-widget-edit.vue @@ -497,6 +497,8 @@ export default { } }, remove() { + throw "Fake remove error"; + // eslint-disable-next-line no-unreachable var vm = this; window.$gz.dialog.confirmDelete().then(dialogResult => { if (dialogResult == true) { @@ -539,6 +541,8 @@ export default { }); }, duplicate() { + throw "Fake duplicate error"; + // eslint-disable-next-line no-unreachable if (this.canDuplicate && this.$route.params.id != 0) { this.formState.loading = true; var vm = this;