From 4df81f485ddb9d9cf7e9eca1726db5d0ac01fc36 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Sat, 6 Feb 2021 00:31:14 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 9 +++++---- ayanova/src/components/data-table.vue | 10 +++++++--- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index da4703c0..a1101ae0 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -19,11 +19,12 @@ LISTVIEW REPLACE CURRENT <----HERE not THERE ---v CLIENT Mobile view why does it not switch when switch widths and have to reset? + custom fields dont' show unless defined?? - SERVER - Error when custom field is included in columns (not even filtered) - - + Should user be able to select custom fields in teh column selector if they are not set to show in the first place? + I would say gray them out as inactive but leave in UI for column selector? + Or hide them if not activated so they can't be selected? + Also, maybe don't return them to the client from the server if they are inactive in the first place todo (after) diff --git a/ayanova/src/components/data-table.vue b/ayanova/src/components/data-table.vue index 0e103e2d..fdfc48bd 100644 --- a/ayanova/src/components/data-table.vue +++ b/ayanova/src/components/data-table.vue @@ -884,9 +884,13 @@ function buildHeaders(columnData) { h.flt = true; } //Sortable? - if (!cm.ns) { - //yes, is sortable - h.srt = true; + // if (!cm.ns) { + // //yes, is sortable + // h.srt = true; + // } else + + if (cm.ns) { + h.sortable = false; } ret.push(h); }