This commit is contained in:
2022-03-09 01:24:03 +00:00
parent c994cbd0de
commit 4fb9e7a6ef
3 changed files with 24 additions and 16 deletions

View File

@@ -37,7 +37,7 @@ can something be done with usercolor in schedule team view??
cases cases
bugbug: change status on quote and save then can't change other things and save. Maybe same with workorder too. 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: 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 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

View File

@@ -545,6 +545,10 @@ export default {
ridColumnOpenable: { ridColumnOpenable: {
type: Boolean, type: Boolean,
default: true default: true
},
doNotTruncate: {
type: Boolean,
default: false
} }
}, },
data() { data() {
@@ -948,7 +952,8 @@ export default {
vm.records = await buildRecords( vm.records = await buildRecords(
res.data, res.data,
res.columns, res.columns,
vm.ridColumnOpenable vm.ridColumnOpenable,
vm.doNotTruncate
); );
vm.totalRecords = res.totalRecordCount; vm.totalRecords = res.totalRecordCount;
@@ -1008,7 +1013,12 @@ function buildHeaders(columnData) {
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
//Called by getDataFromApi on retrieval of list with 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 //iterate data, build each object keyed with index name and display set to correct translated filter and then return
const ret = []; const ret = [];
@@ -1108,10 +1118,13 @@ async function buildRecords(listData, columndefinitions, ridColumnOpenable) {
display display
); );
} }
display = window.$gz.util.truncateString(
display, if (!doNotTruncate) {
MAX_TEXT_COLUMN_LENGTH display = window.$gz.util.truncateString(
); display,
MAX_TEXT_COLUMN_LENGTH
);
}
break; break;
case 5: //Integer case 5: //Integer
//display is already set, just some styling to do //display is already set, just some styling to do

View File

@@ -1,17 +1,12 @@
<template> <template>
<div> <div>
<gz-report-selector ref="reportSelector"></gz-report-selector>
<gz-extensions
ref="extensions"
:aya-type="aType"
:selected-items="selectedItems"
>
</gz-extensions>
<gz-data-table <gz-data-table
ref="gzdatatable" ref="gzdatatable"
form-key="ops-notify-log" form-key="ops-notify-log"
:rid-column-openable="false"
:do-not-truncate="true"
data-list-key="NotificationDeliveryLogDataList" data-list-key="NotificationDeliveryLogDataList"
:show-select="rights.read" :show-select="false"
:reload="reload" :reload="reload"
data-cy="notifyLogTable" data-cy="notifyLogTable"
@selection-change="handleSelected" @selection-change="handleSelected"
@@ -25,7 +20,7 @@ export default {
data() { data() {
return { return {
rights: window.$gz.role.defaultRightsObject(), rights: window.$gz.role.defaultRightsObject(),
aType: window.$gz.type.NotifySubscription, aType: window.$gz.type.OpsNotificationSettings,
selectedItems: [], selectedItems: [],
reload: false reload: false
}; };