mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-04 20:18:12 +00:00
chore: removed loco count checking
This commit is contained in:
@@ -171,9 +171,9 @@
|
|||||||
</i18n-t>
|
</i18n-t>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="warning" v-if="locoCountExceeded">
|
<!-- <div class="warning" v-if="locoCountExceeded">
|
||||||
{{ $t('stocklist.warning-too-many-locos') }}
|
{{ $t('stocklist.warning-too-many-locos') }}
|
||||||
</div>
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<StockThumbnails :onListItemClick="onListItemClick" />
|
<StockThumbnails :onListItemClick="onListItemClick" />
|
||||||
@@ -345,14 +345,14 @@ export default defineComponent({
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
locoCountExceeded() {
|
// locoCountExceeded() {
|
||||||
return (
|
// return (
|
||||||
this.store.stockList.reduce((acc, stock) => {
|
// this.store.stockList.reduce((acc, stock) => {
|
||||||
if (isTractionUnit(stock.vehicleRef)) acc += 1;
|
// if (isTractionUnit(stock.vehicleRef)) acc += 1;
|
||||||
return acc;
|
// return acc;
|
||||||
}, 0) > 2
|
// }, 0) > 2
|
||||||
);
|
// );
|
||||||
},
|
// },
|
||||||
|
|
||||||
teamOnlyVehicles() {
|
teamOnlyVehicles() {
|
||||||
return this.store.stockList.filter((stock) => stock.vehicleRef.teamOnly);
|
return this.store.stockList.filter((stock) => stock.vehicleRef.teamOnly);
|
||||||
@@ -360,11 +360,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
hasAnyWarnings() {
|
hasAnyWarnings() {
|
||||||
return (
|
return (
|
||||||
this.locoCountExceeded ||
|
this.weightExceeded || this.lengthExceeded || this.locoNotSuitable || this.teamOnlyVehicles
|
||||||
this.weightExceeded ||
|
|
||||||
this.lengthExceeded ||
|
|
||||||
this.locoNotSuitable ||
|
|
||||||
this.teamOnlyVehicles
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user