2019-01-18 14:03:58 +01:00
|
|
|
<template>
|
2019-01-21 20:58:25 +01:00
|
|
|
<v-card xs12>
|
|
|
|
|
<v-card-title primary-title>
|
2019-03-02 21:51:25 +01:00
|
|
|
<h3 class="headline mb-0"><v-icon class="ml-1 mr-1" v-if="hasUser" v-on:click="toggleIgnore('band', event.band.name)" medium title="Dölj">mdi-eye-off</v-icon>{{event.band.name}}</h3>
|
2019-01-21 20:58:25 +01:00
|
|
|
</v-card-title>
|
|
|
|
|
<v-container>
|
|
|
|
|
<v-layout row wrap>
|
2019-02-04 09:38:58 +01:00
|
|
|
<v-flex xs12 sm6><strong>Datum:</strong> {{event.date}} ({{ weekday }})</v-flex>
|
2019-01-21 20:58:25 +01:00
|
|
|
<v-flex xs12 sm6 v-if="event.time"><strong>Tid:</strong> {{event.time}}</v-flex>
|
|
|
|
|
</v-layout>
|
|
|
|
|
<v-layout row wrap>
|
2019-03-02 21:51:25 +01:00
|
|
|
<v-flex xs12 sm6 md3><strong>Var:</strong><v-icon class="ml-1 mr-1" v-if="hasUser" v-on:click="toggleIgnore('danceHall', event.danceHall.name)" small title="Dölj">mdi-eye-off</v-icon>{{event.danceHall.name}}</v-flex>
|
|
|
|
|
<v-flex xs12 sm6 md3><strong>Ort:</strong><v-icon class="ml-1 mr-1" v-if="hasUser" v-on:click="toggleIgnore('city', event.danceHall.city)" small title="Dölj">mdi-eye-off</v-icon>{{event.danceHall.city}}</v-flex>
|
|
|
|
|
<v-flex xs12 sm6 md3><strong>Kommun:</strong><v-icon class="ml-1 mr-1" v-if="hasUser" v-on:click="toggleIgnore('municipality', event.danceHall.municipality)" small title="Dölj">mdi-eye-off</v-icon>{{event.danceHall.municipality}}</v-flex>
|
|
|
|
|
<v-flex xs12 sm6 md3><strong>Län:</strong><v-icon class="ml-1 mr-1" v-if="hasUser" v-on:click="toggleIgnore('state', event.danceHall.state)" small title="Dölj">mdi-eye-off</v-icon>{{event.danceHall.state}}</v-flex>
|
2019-01-21 20:58:25 +01:00
|
|
|
</v-layout>
|
2019-03-02 11:45:45 +01:00
|
|
|
<v-layout row wrap v-for="distance in event.distances" :key="event.origin">
|
2019-03-02 15:11:46 +01:00
|
|
|
<v-flex xs12 sm6>
|
2019-03-02 11:45:45 +01:00
|
|
|
<v-icon>mdi-home</v-icon>
|
|
|
|
|
<span><strong>{{distance.origin}}</strong></span>
|
|
|
|
|
</v-flex>
|
2019-03-02 15:11:46 +01:00
|
|
|
<v-flex xs12 sm6>
|
2019-03-02 11:45:45 +01:00
|
|
|
<v-icon>mdi-car</v-icon>
|
|
|
|
|
<span>{{distance.distance / 1000 | numeral('0,0.00')}} km</span>
|
|
|
|
|
<v-icon>mdi-clock-outline</v-icon>
|
|
|
|
|
<span>{{distance.duration}}</span>
|
|
|
|
|
</v-flex>
|
|
|
|
|
</v-layout>
|
2019-01-21 20:58:25 +01:00
|
|
|
</v-container>
|
|
|
|
|
</v-card>
|
2019-01-18 14:03:58 +01:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
props: {
|
|
|
|
|
event: {
|
|
|
|
|
type: Object,
|
|
|
|
|
required: true
|
|
|
|
|
},
|
|
|
|
|
hasUser: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
required: true
|
|
|
|
|
},
|
2019-03-02 21:51:25 +01:00
|
|
|
toggleIgnore: {
|
2019-01-18 14:03:58 +01:00
|
|
|
type: Function,
|
|
|
|
|
required: true
|
|
|
|
|
}
|
2019-02-04 09:38:58 +01:00
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
weekday() {
|
|
|
|
|
return window.$nuxt.$moment(this.event.date).format('dddd');
|
|
|
|
|
}
|
2019-01-18 14:03:58 +01:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|