diff --git a/flatisfy/web/js_src/components/flatstable.vue b/flatisfy/web/js_src/components/flatstable.vue index fe3284f..6d4d632 100644 --- a/flatisfy/web/js_src/components/flatstable.vue +++ b/flatisfy/web/js_src/components/flatstable.vue @@ -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') { diff --git a/flatisfy/web/js_src/components/flatstableline.vue b/flatisfy/web/js_src/components/flatstableline.vue index 330108b..86bcf1b 100644 --- a/flatisfy/web/js_src/components/flatstableline.vue +++ b/flatisfy/web/js_src/components/flatstableline.vue @@ -86,6 +86,12 @@ export default { return range(this.flat.notation); }, }, + + methods: { + updateFlatStatus (id, status) { + this.$store.dispatch('updateFlatStatus', { flatId: id, newStatus: status }) + }, + }, };