Make linter happy
This commit is contained in:
parent
1434cfedda
commit
f67ec66d9b
@ -56,13 +56,13 @@
|
|||||||
<script>
|
<script>
|
||||||
import 'font-awesome-webpack'
|
import 'font-awesome-webpack'
|
||||||
|
|
||||||
import FlatsTableLine from './flatstableline.vue';
|
import FlatsTableLine from './flatstableline.vue'
|
||||||
|
|
||||||
import { capitalize } from '../tools'
|
import { capitalize } from '../tools'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
FlatsTableLine,
|
FlatsTableLine
|
||||||
},
|
},
|
||||||
|
|
||||||
data () {
|
data () {
|
||||||
@ -129,7 +129,7 @@ export default {
|
|||||||
this.sortBy = field
|
this.sortBy = field
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
capitalize: capitalize,
|
capitalize: capitalize
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -66,33 +66,33 @@ export default {
|
|||||||
props: {
|
props: {
|
||||||
flat: Object,
|
flat: Object,
|
||||||
showNotationColumn: Boolean,
|
showNotationColumn: Boolean,
|
||||||
showNotes: Boolean,
|
showNotes: Boolean
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
capitalizedStatus() {
|
capitalizedStatus () {
|
||||||
return capitalize(this.$t('status.followed'));
|
return capitalize(this.$t('status.followed'))
|
||||||
},
|
},
|
||||||
photo() {
|
photo () {
|
||||||
if (this.flat.photos && this.flat.photos.length > 0) {
|
if (this.flat.photos && this.flat.photos.length > 0) {
|
||||||
if (this.flat.photos[0].local) {
|
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);
|
|
||||||
},
|
},
|
||||||
|
notationRange () {
|
||||||
|
return range(this.flat.notation)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
updateFlatStatus (id, status) {
|
updateFlatStatus (id, status) {
|
||||||
this.$store.dispatch('updateFlatStatus', { flatId: id, newStatus: status })
|
this.$store.dispatch('updateFlatStatus', { flatId: id, newStatus: status })
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
};
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
@ -28,14 +28,14 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
photosURLOrLocal() {
|
photosURLOrLocal () {
|
||||||
return this.photos.map(photo => {
|
return this.photos.map(photo => {
|
||||||
if (photo.local) {
|
if (photo.local) {
|
||||||
return `/data/img/${photo.local}`;
|
return `/data/img/${photo.local}`
|
||||||
|
}
|
||||||
|
return photo.url
|
||||||
|
})
|
||||||
}
|
}
|
||||||
return photo.url;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
|
||||||
created () {
|
created () {
|
||||||
|
@ -42,7 +42,7 @@ export default {
|
|||||||
'utilities_included': '(utilities included)',
|
'utilities_included': '(utilities included)',
|
||||||
'utilities_excluded': '(utilities excluded)',
|
'utilities_excluded': '(utilities excluded)',
|
||||||
'Description': 'Description',
|
'Description': 'Description',
|
||||||
'First_posted' : 'First posted',
|
'First_posted': 'First posted',
|
||||||
'Details': 'Details',
|
'Details': 'Details',
|
||||||
'Metadata': 'Metadata',
|
'Metadata': 'Metadata',
|
||||||
'postal_code': 'Postal code',
|
'postal_code': 'Postal code',
|
||||||
|
@ -59,8 +59,8 @@ export default {
|
|||||||
|
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
showExpiredFlats: false,
|
showExpiredFlats: false
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
Loading…
Reference in New Issue
Block a user