From a3abed71b2a95846fc761be0b4418d045c35608c Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 31 Jan 2020 01:16:49 +0000 Subject: [PATCH] --- ayanova/src/components/gz-data-table.vue | 29 +++++++++++------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/ayanova/src/components/gz-data-table.vue b/ayanova/src/components/gz-data-table.vue index f7930398..0ee3f521 100644 --- a/ayanova/src/components/gz-data-table.vue +++ b/ayanova/src/components/gz-data-table.vue @@ -135,23 +135,20 @@ export default { }, deep: true }, - selected: { - handler(newValue, oldValue) { - if (newValue.length != oldValue.length) { - console.log("Selected changed, triggering handleSelectChange:"); - - this.handleSelectChange(); - } - }, - deep: true - } - // , - // selected: function(newValue, oldValue) { - // if (newValue != oldValue) { - // console.log("Selected changed, triggering handleSelectChange:"); - // this.handleSelectChange(); - // } + // selected: { + // handler(newValue, oldValue) { + // //without this it fires twice + // if (newValue.length != oldValue.length) { + // this.handleSelectChange(); + // } + // }, + // deep: true // } + selected: function(newValue, oldValue) { + if (newValue.length != oldValue.length) { + this.handleSelectChange(); + } + } // , //for now, not going with my own mini mode but may revisit so keeping this here but commented out for now // "$vuetify.breakpoint.xs": function(value) { // this.getDataFromApi();