@@ -42,7 +42,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getEmptyVehicle(veh) {
|
getEmptyVehicle(veh) {
|
||||||
if (!veh.id) {
|
if (!veh || !veh.id) {
|
||||||
return {
|
return {
|
||||||
fuelUnit: null,
|
fuelUnit: null,
|
||||||
fuelType: null,
|
fuelType: null,
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import appConfig from '@src/app.config'
|
|||||||
import Layout from '@layouts/main.vue'
|
import Layout from '@layouts/main.vue'
|
||||||
import CreateQuickEntry from '@components/createQuickEntry.vue'
|
import CreateQuickEntry from '@components/createQuickEntry.vue'
|
||||||
import StatsWidget from '@components/statsWidget.vue'
|
import StatsWidget from '@components/statsWidget.vue'
|
||||||
|
import { chunk } from 'lodash'
|
||||||
|
|
||||||
import { parseAndFormatDate } from '@utils/format-date'
|
import { parseAndFormatDate } from '@utils/format-date'
|
||||||
// import store from '@state/store'
|
// import store from '@state/store'
|
||||||
@@ -35,6 +36,9 @@ export default {
|
|||||||
...mapState('vehicles', ['vehicles']),
|
...mapState('vehicles', ['vehicles']),
|
||||||
...mapState('utils', ['isMobile']),
|
...mapState('utils', ['isMobile']),
|
||||||
...mapGetters('vehicles', ['unprocessedQuickEntries']),
|
...mapGetters('vehicles', ['unprocessedQuickEntries']),
|
||||||
|
chunkedVehicles() {
|
||||||
|
return chunk(this.myVehicles, 3)
|
||||||
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
vehicles(old, newOne) {
|
vehicles(old, newOne) {
|
||||||
@@ -103,8 +107,9 @@ export default {
|
|||||||
</div></div
|
</div></div
|
||||||
>
|
>
|
||||||
|
|
||||||
<div v-if="myVehicles.length" class="columns">
|
<div v-if="myVehicles.length">
|
||||||
<div v-for="vehicle in myVehicles" :key="vehicle.id" class="column is-4">
|
<div v-for="chunk,index in chunkedVehicles" :key="index" class="columns">
|
||||||
|
<div v-for="vehicle in chunk" :key="vehicle.id" class="column is-4">
|
||||||
<b-collapse animation="slide" aria-id="contentIdForA11y3" class="card" :open="!isMobile">
|
<b-collapse animation="slide" aria-id="contentIdForA11y3" class="card" :open="!isMobile">
|
||||||
<template v-slot:trigger="props">
|
<template v-slot:trigger="props">
|
||||||
<div class="card-header" role="button" aria-controls="contentIdForA11y3">
|
<div class="card-header" role="button" aria-controls="contentIdForA11y3">
|
||||||
@@ -155,6 +160,7 @@ export default {
|
|||||||
</footer>
|
</footer>
|
||||||
</b-collapse>
|
</b-collapse>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|||||||
@@ -226,7 +226,7 @@ export default {
|
|||||||
v-model="registerModel.password"
|
v-model="registerModel.password"
|
||||||
type="password"
|
type="password"
|
||||||
required
|
required
|
||||||
minlength="6"
|
minlength="8"
|
||||||
password-reveal
|
password-reveal
|
||||||
></b-input>
|
></b-input>
|
||||||
</b-field>
|
</b-field>
|
||||||
|
|||||||
Reference in New Issue
Block a user