From 4fb9e7a6ef7fdfe6da9c8990b817ffcd0ee476e7 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 9 Mar 2022 01:24:03 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 2 +- ayanova/src/components/data-table.vue | 25 +++++++++++++++++++------ ayanova/src/views/ops-notify-log.vue | 13 ++++--------- 3 files changed, 24 insertions(+), 16 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 66187e26..1193abe0 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -37,7 +37,7 @@ can something be done with usercolor in schedule team view?? cases bugbug: change status on quote and save then can't change other things and save. Maybe same with workorder too. - +bugbug: home-notifications text in general error is cut off, doesn't overflow properly just goes off the screen as if not contained todo: dbutil erase db new tables not added!! may b e more than just customernotification, haven't been in there in a while todo: mirror remove not used settings in regular user notify subscription to avoid duplicate problem there too with invalid or more likely hidden and hard to diagnose settings diff --git a/ayanova/src/components/data-table.vue b/ayanova/src/components/data-table.vue index 49b59672..fa9ed558 100644 --- a/ayanova/src/components/data-table.vue +++ b/ayanova/src/components/data-table.vue @@ -545,6 +545,10 @@ export default { ridColumnOpenable: { type: Boolean, default: true + }, + doNotTruncate: { + type: Boolean, + default: false } }, data() { @@ -948,7 +952,8 @@ export default { vm.records = await buildRecords( res.data, res.columns, - vm.ridColumnOpenable + vm.ridColumnOpenable, + vm.doNotTruncate ); vm.totalRecords = res.totalRecordCount; @@ -1008,7 +1013,12 @@ function buildHeaders(columnData) { ///////////////////////////////////////////////////////////////// //Called by getDataFromApi on retrieval of list with columnData // -async function buildRecords(listData, columndefinitions, ridColumnOpenable) { +async function buildRecords( + listData, + columndefinitions, + ridColumnOpenable, + doNotTruncate +) { //iterate data, build each object keyed with index name and display set to correct translated filter and then return const ret = []; @@ -1108,10 +1118,13 @@ async function buildRecords(listData, columndefinitions, ridColumnOpenable) { display ); } - display = window.$gz.util.truncateString( - display, - MAX_TEXT_COLUMN_LENGTH - ); + + if (!doNotTruncate) { + display = window.$gz.util.truncateString( + display, + MAX_TEXT_COLUMN_LENGTH + ); + } break; case 5: //Integer //display is already set, just some styling to do diff --git a/ayanova/src/views/ops-notify-log.vue b/ayanova/src/views/ops-notify-log.vue index 7b589591..e0d2fada 100644 --- a/ayanova/src/views/ops-notify-log.vue +++ b/ayanova/src/views/ops-notify-log.vue @@ -1,17 +1,12 @@