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
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

View File

@@ -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
);
}
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

View File

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