Make linter happy

This commit is contained in:
dohseven 2019-01-15 22:05:46 +01:00
parent 1434cfedda
commit f67ec66d9b
5 changed files with 24 additions and 24 deletions

View File

@ -56,13 +56,13 @@
<script>
import 'font-awesome-webpack'
import FlatsTableLine from './flatstableline.vue';
import FlatsTableLine from './flatstableline.vue'
import { capitalize } from '../tools'
export default {
components: {
FlatsTableLine,
FlatsTableLine
},
data () {
@ -129,7 +129,7 @@ export default {
this.sortBy = field
}
},
capitalize: capitalize,
capitalize: capitalize
}
}
</script>

View File

@ -66,33 +66,33 @@ export default {
props: {
flat: Object,
showNotationColumn: Boolean,
showNotes: Boolean,
showNotes: Boolean
},
computed: {
capitalizedStatus () {
return capitalize(this.$t('status.followed'));
return capitalize(this.$t('status.followed'))
},
photo () {
if (this.flat.photos && this.flat.photos.length > 0) {
if (this.flat.photos[0].local) {
return `/data/img/${this.flat.photos[0].local}`;
return `/data/img/${this.flat.photos[0].local}`
}
return this.flat.photos[0].url;
return this.flat.photos[0].url
}
return null;
return null
},
notationRange () {
return range(this.flat.notation);
},
return range(this.flat.notation)
}
},
methods: {
updateFlatStatus (id, status) {
this.$store.dispatch('updateFlatStatus', { flatId: id, newStatus: status })
},
},
};
}
}
}
</script>
<style scoped>

View File

@ -31,11 +31,11 @@ export default {
photosURLOrLocal () {
return this.photos.map(photo => {
if (photo.local) {
return `/data/img/${photo.local}`;
return `/data/img/${photo.local}`
}
return photo.url
})
}
return photo.url;
});
},
},
created () {

View File

@ -59,8 +59,8 @@ export default {
data () {
return {
showExpiredFlats: false,
};
showExpiredFlats: false
}
},
computed: {