Fixed some issues with the logic in arePagePrerequisitesValid
This commit is contained in:
parent
4773814a07
commit
200dcd12e4
2 changed files with 2 additions and 9 deletions
|
|
@ -75,10 +75,8 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
arePagePrerequisitesValid() {
|
arePagePrerequisitesValid() {
|
||||||
if (store.getters.order.damage.isRepair || store.getters.order.lineItems.glassParts.length > 0) {
|
store.getters.order.lineItems.glassParts = [];
|
||||||
return true;
|
return store.getters.order.damage.isRepair || (store.getters.order.lineItems?.glassParts != null && store.getters.order.lineItems.glassParts.length > 0);
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
||||||
|
|
@ -25,11 +25,6 @@ import { applicationConfig } from "../constants/application-config";
|
||||||
import quote from "@/layouts/quote/quote.vue";
|
import quote from "@/layouts/quote/quote.vue";
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
{
|
|
||||||
path: "/quote", // This is a temporary route for testing.
|
|
||||||
name: "quote",
|
|
||||||
component: quote,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: "/",
|
path: "/",
|
||||||
name: "root",
|
name: "root",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue