Fix the "delete" button in the table view
In c7fa6c8b5b
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.
This commit is contained in:
parent
5da06280be
commit
ef896f999f
@ -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') {
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user