diff --git a/ayanova/src/views/inventory-widget-edit.vue b/ayanova/src/views/inventory-widget-edit.vue index a502d31b..85eaaab0 100644 --- a/ayanova/src/views/inventory-widget-edit.vue +++ b/ayanova/src/views/inventory-widget-edit.vue @@ -441,7 +441,6 @@ export default { //duplicate //navigate to new record throw "T$EST"; - //alert("STUB: DUPLICATE"); } } }; diff --git a/ayanova/src/views/login.vue b/ayanova/src/views/login.vue index 6f098a1c..0b723a03 100644 --- a/ayanova/src/views/login.vue +++ b/ayanova/src/views/login.vue @@ -2,12 +2,7 @@ - + @@ -80,11 +75,11 @@ export default { login() { if (this.input.username != "" && this.input.password != "") { this.errorBadCreds = false; - var that = this; + var vm = this; auth .authenticate(this.input.username, this.input.password) .then(() => { - this.$router.push({ name: "home" }); + vm.$router.push({ name: "home" }); }) .catch(function handleCaughtLoginError(error) { /* xeslint-disable-next-line */ @@ -92,11 +87,8 @@ export default { error.message && error.message.includes("ErrorUserNotAuthenticated") ) { - that.errorBadCreds = true; - // alert("BAD CREDENTIALS - BOO!"); + vm.errorBadCreds = true; } - //console.log(error); - // alert("login failed: " + error); }); } }