Minor UI-fixes and fix ignore municipality
This commit is contained in:
@@ -1,16 +1,15 @@
|
||||
<template>
|
||||
<Card dis-hover>
|
||||
<p slot="title">{{event.band.name}}</p>
|
||||
<a href="#" slot="extra" v-if="hasUser" @click.prevent="ignore('band', event.band.name)"><Icon type="ios-eye-off" title="Dölj"></Icon></a>
|
||||
<p slot="title"><a href="#" v-if="hasUser" @click.prevent="ignore('band', event.band.name)"><Icon type="ios-eye-off" title="Dölj"></Icon> </a>{{event.band.name}}</p>
|
||||
<Row>
|
||||
<Col :xs="24" :sm="12"><strong>Datum:</strong> {{event.date}}</Col>
|
||||
<Col :xs="24" :sm="12" v-if="event.time"><strong>Tid:</strong> {{event.time}}</Col>
|
||||
</Row>
|
||||
<Row>
|
||||
<Col :xs="24" :sm="12" :md="6"><strong>Var:</strong> {{event.danceHall.name}} <a href="#" v-if="hasUser" @click.prevent="ignore('danceHall', event.danceHall.name)"><Icon type="ios-eye-off" title="Dölj"></Icon></a></Col>
|
||||
<Col :xs="24" :sm="12" :md="6"><strong>Ort:</strong> {{event.danceHall.city}} <a href="#" v-if="hasUser" @click.prevent="ignore('city', event.danceHall.city)"><Icon type="ios-eye-off" title="Dölj"></Icon></a></Col>
|
||||
<Col :xs="24" :sm="12" :md="6"><strong>Kommun:</strong> {{event.danceHall.municipality}} <a href="#" v-if="hasUser" @click.prevent="ignore('municipality', event.danceHall.municipality)"><Icon type="ios-eye-off" title="Dölj"></Icon></a></Col>
|
||||
<Col :xs="24" :sm="12" :md="6"><strong>Län:</strong> {{event.danceHall.state}} <a href="#" v-if="hasUser" @click.prevent="ignore('state', event.danceHall.state)"><Icon type="ios-eye-off" title="Dölj"></Icon></a></Col>
|
||||
<Col :xs="24" :sm="12" :md="6"><strong>Var:</strong> <a href="#" v-if="hasUser" @click.prevent="ignore('danceHall', event.danceHall.name)"><Icon type="ios-eye-off" title="Dölj"></Icon> </a>{{event.danceHall.name}}</Col>
|
||||
<Col :xs="24" :sm="12" :md="6"><strong>Ort:</strong> <a href="#" v-if="hasUser" @click.prevent="ignore('city', event.danceHall.city)"><Icon type="ios-eye-off" title="Dölj"></Icon> </a>{{event.danceHall.city}}</Col>
|
||||
<Col :xs="24" :sm="12" :md="6"><strong>Kommun:</strong> <a href="#" v-if="hasUser" @click.prevent="ignore('municipality', event.danceHall.municipality)"><Icon type="ios-eye-off" title="Dölj"></Icon> </a>{{event.danceHall.municipality}}</Col>
|
||||
<Col :xs="24" :sm="12" :md="6"><strong>Län:</strong> <a href="#" v-if="hasUser" @click.prevent="ignore('state', event.danceHall.state)"><Icon type="ios-eye-off" title="Dölj"></Icon> </a>{{event.danceHall.state}}</Col>
|
||||
</Row>
|
||||
</Card>
|
||||
</template>
|
||||
|
||||
@@ -115,9 +115,9 @@
|
||||
.catch(this.ignoreFailed);
|
||||
break;
|
||||
case 'municipality':
|
||||
ignoreMunicipality({name: name}
|
||||
ignoreMunicipality({name: name})
|
||||
.then(this.ignoreSuccess(name))
|
||||
.catch(this.ignoreFailed));
|
||||
.catch(this.ignoreFailed);
|
||||
break;
|
||||
case 'state':
|
||||
ignoreState({name: name})
|
||||
@@ -128,8 +128,8 @@
|
||||
},
|
||||
ignoreSuccess(name) {
|
||||
return () => {
|
||||
this.$Message.success(`${name} har dolts`);
|
||||
this.fetchEvents();
|
||||
this.$Message.success(`${name} har dolts`);
|
||||
}
|
||||
},
|
||||
ignoreFailed(name) {
|
||||
|
||||
Reference in New Issue
Block a user