Skip to content

Commit

Permalink
style: fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
blackbirdem committed Jul 15, 2024
1 parent f2c4661 commit 13ca526
Showing 1 changed file with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<template>
<div class="job-inputs">
<v-expansion-panel class="no-shadow" :value="jobExtended" :expand="true">
<v-expansion-panel-content style="background: transparent;" v-for="(j, i) in jobs" :key="i">
<div v-if="localMapViewData === null || !unassignedIds.includes(j.id)" slot="header" style="padding-bottom: 0;"><v-icon style="padding: 0 5px 0 0">work</v-icon><b>Job {{j.id}} - {{ j.location[0].toPrecision(8) }}, {{ j.location[1].toPrecision(8)}}</b></div>
<div v-else slot="header" style="padding-bottom: 0"><v-icon style="padding: 0 5px 0 0">work</v-icon><b>Job {{j.id}} - {{ j.location[0].toPrecision(8) }}, {{ j.location[1].toPrecision(8)}}
<v-icon small class="warning-icon">priority_high</v-icon></b></div>
<v-card-text>
<template v-for="prop in ['delivery','pickup','skills','time_window','service']">
<v-chip v-if="j[prop] && prop === 'service'" style="flex: auto">{{ $t(`optimization.${prop}`) }}: {{ humanisedTime(j[prop]) }}</v-chip>
<v-chip v-else-if="j[prop] && prop !== 'skills' && j[prop][0] !== 0" style="flex: auto">{{ $t(`optimization.${prop}`) }}: {{ j[prop][0] }}</v-chip>
<v-chip v-else-if="j[prop] && prop === 'skills' && j[prop].length" style="flex: auto">
{{ $t(`optimization.${prop}`) }}: {{ skillIds(j) }}
</v-chip>
</template>
</v-card-text>
</v-expansion-panel-content>
</v-expansion-panel>
<v-expansion-panel class="no-shadow" :value="jobExtended" :expand="true">
<v-expansion-panel-content style="background: transparent;" v-for="(j, i) in jobs" :key="i">
<div v-if="localMapViewData === null || !unassignedIds.includes(j.id)" slot="header" style="padding-bottom: 0;"><v-icon style="padding: 0 5px 0 0">work</v-icon><b>Job {{j.id}} - {{ j.location[0].toPrecision(8) }}, {{ j.location[1].toPrecision(8)}}</b></div>
<div v-else slot="header" style="padding-bottom: 0"><v-icon style="padding: 0 5px 0 0">work</v-icon><b>Job {{j.id}} - {{ j.location[0].toPrecision(8) }}, {{ j.location[1].toPrecision(8)}}
<v-icon small class="warning-icon">priority_high</v-icon></b></div>
<v-card-text>
<template v-for="prop in ['delivery','pickup','skills','time_window','service']">
<v-chip v-if="j[prop] && prop === 'service'" style="flex: auto">{{ $t(`optimization.${prop}`) }}: {{ humanisedTime(j[prop]) }}</v-chip>
<v-chip v-else-if="j[prop] && prop !== 'skills' && j[prop][0] !== 0" style="flex: auto">{{ $t(`optimization.${prop}`) }}: {{ j[prop][0] }}</v-chip>
<v-chip v-else-if="j[prop] && prop === 'skills' && j[prop].length" style="flex: auto">
{{ $t(`optimization.${prop}`) }}: {{ skillIds(j) }}
</v-chip>
</template>
</v-card-text>
</v-expansion-panel-content>
</v-expansion-panel>
</div>
</template>

Expand Down

0 comments on commit 13ca526

Please sign in to comment.