From 80b0226a16c55c74447f631a718c99748c87ca92 Mon Sep 17 00:00:00 2001 From: Spythere Date: Sat, 8 Mar 2025 02:15:27 +0100 Subject: [PATCH] chore: removed loco count checking --- src/components/tabs/StockListTab.vue | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/components/tabs/StockListTab.vue b/src/components/tabs/StockListTab.vue index ba98c3b..620c9cc 100644 --- a/src/components/tabs/StockListTab.vue +++ b/src/components/tabs/StockListTab.vue @@ -171,9 +171,9 @@ -
+
@@ -345,14 +345,14 @@ export default defineComponent({ ); }, - locoCountExceeded() { - return ( - this.store.stockList.reduce((acc, stock) => { - if (isTractionUnit(stock.vehicleRef)) acc += 1; - return acc; - }, 0) > 2 - ); - }, + // locoCountExceeded() { + // return ( + // this.store.stockList.reduce((acc, stock) => { + // if (isTractionUnit(stock.vehicleRef)) acc += 1; + // return acc; + // }, 0) > 2 + // ); + // }, teamOnlyVehicles() { return this.store.stockList.filter((stock) => stock.vehicleRef.teamOnly); @@ -360,11 +360,7 @@ export default defineComponent({ hasAnyWarnings() { return ( - this.locoCountExceeded || - this.weightExceeded || - this.lengthExceeded || - this.locoNotSuitable || - this.teamOnlyVehicles + this.weightExceeded || this.lengthExceeded || this.locoNotSuitable || this.teamOnlyVehicles ); }, },