Commit ef896f99 authored by Julien Wajsberg's avatar Julien Wajsberg

Fix the "delete" button in the table view

In c7fa6c8b the code using
`updateFlatStatus` moved to the new file `flatstableline.vue` but the
actual method wasn't moved in the process, yielding an error when one
wanted to use the button.

This patch moves the method to the new file.
parent 5da06280
......@@ -118,9 +118,6 @@ export default {
},
methods: {
updateFlatStatus (id, status) {
this.$store.dispatch('updateFlatStatus', { flatId: id, newStatus: status })
},
updateSortBy (field) {
if (this.sortBy === field) {
if (this.sortOrder === 'up') {
......
......@@ -86,6 +86,12 @@ export default {
return range(this.flat.notation);
},
},
methods: {
updateFlatStatus (id, status) {
this.$store.dispatch('updateFlatStatus', { flatId: id, newStatus: status })
},
},
};
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment