Browse Source

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
master
Phyks 4 years ago
parent
commit
4ef32a5653
  1. 3
      flatisfy/web/js_src/components/flatstable.vue
  2. 6
      flatisfy/web/js_src/components/flatstableline.vue

3
flatisfy/web/js_src/components/flatstable.vue

@ -118,9 +118,6 @@ export default { @@ -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') {

6
flatisfy/web/js_src/components/flatstableline.vue

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

Loading…
Cancel
Save