From f0bac39a96f827c14ce1791f11b9f79f540bf372 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 11 Feb 2020 20:13:05 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 2 +- ayanova/src/components/gz-data-table.vue | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index ee1b3f4b..f73c7ced 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -46,7 +46,7 @@ SHELL / NAV / MENUS / LAYOUT TODO: LOCALIZATION - - DataTable Editing and saving a widget makes it disappear from list, the default sort order sb by record ID so they stay in same order + - DataTable changing screen width doesn't automatically transition to alternate view seems to require a forced refresh when it shouldn't - DataTable clean out old comments / clean up code diff --git a/ayanova/src/components/gz-data-table.vue b/ayanova/src/components/gz-data-table.vue index 492553e0..35056d3a 100644 --- a/ayanova/src/components/gz-data-table.vue +++ b/ayanova/src/components/gz-data-table.vue @@ -290,7 +290,7 @@ export default { records: [], rowsPerPageItems: [5, 10, 25, 50, 100], selected: [], - narrowFormat: this.$vuetify.breakpoint.xs + narrowFormat: false }; }, props: { @@ -324,11 +324,10 @@ export default { if (newValue.length != oldValue.length) { this.handleSelectChange(); } + }, + "$vuetify.breakpoint.xs": function(value) { + this.narrowFormat = value; } - // , - // "$vuetify.breakpoint.xs": function(value) { - // this.narrowFormat = value; - // } }, methods: { //Used by narrow view to get the "header" text for a column based on the column key