Merge branch 'fix-delete-button-on-main-table-view' into 'master'

Fix the "delete" button in the table view

See merge request phyks/Flatisfy!33
This commit is contained in:
Phyks 2018-10-30 14:58:32 +01:00
commit 4ef32a5653
2 changed files with 6 additions and 3 deletions

View File

@ -118,9 +118,6 @@ export default {
}, },
methods: { methods: {
updateFlatStatus (id, status) {
this.$store.dispatch('updateFlatStatus', { flatId: id, newStatus: status })
},
updateSortBy (field) { updateSortBy (field) {
if (this.sortBy === field) { if (this.sortBy === field) {
if (this.sortOrder === 'up') { if (this.sortOrder === 'up') {

View File

@ -86,6 +86,12 @@ export default {
return range(this.flat.notation); return range(this.flat.notation);
}, },
}, },
methods: {
updateFlatStatus (id, status) {
this.$store.dispatch('updateFlatStatus', { flatId: id, newStatus: status })
},
},
}; };
</script> </script>