From 27fb6de01ea94a5b479d3ac8332e106e79922f34 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 12 Jan 2022 22:56:11 +0000 Subject: [PATCH] --- ayanova/src/components/data-table.vue | 15 +++++++++++---- ayanova/src/views/ay-report-edit.vue | 2 +- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ayanova/src/components/data-table.vue b/ayanova/src/components/data-table.vue index 7d61ec2b..49b59672 100644 --- a/ayanova/src/components/data-table.vue +++ b/ayanova/src/components/data-table.vue @@ -1144,10 +1144,17 @@ async function buildRecords(listData, columndefinitions, ridColumnOpenable) { break; case 10: //enum - display = window.$gz.enums.get( - columndefinitions[iColumn].et, - display - ); + if (display != 0) { + display = `[${window.$gz.enums.get( + columndefinitions[iColumn].et, + display + )}]`; + } else { + display = window.$gz.enums.get( + columndefinitions[iColumn].et, + display + ); + } break; case 14: //MemorySize (file size) display = window.$gz.locale.humanFileSize( diff --git a/ayanova/src/views/ay-report-edit.vue b/ayanova/src/views/ay-report-edit.vue index f97a482f..a7f3ace9 100644 --- a/ayanova/src/views/ay-report-edit.vue +++ b/ayanova/src/views/ay-report-edit.vue @@ -558,7 +558,7 @@ export default { noSemanticValidation: false, noSyntaxValidation: false, noSuggestionDiagnostics: false, - diagnosticCodesToIgnore: [2393, 7044] //this hides a weird error about ayPrepareData being declared more than once which I think is more related to it being barebones in there + diagnosticCodesToIgnore: [2393, 7044] //2393 hides a weird error about ayPrepareData being declared more than once which I think is more related to it being barebones in there, 7044 hides a useless prompt about ayData parameter not being strongly typed }); monaco.languages.typescript.javascriptDefaults.setCompilerOptions({ target: monaco.languages.typescript.ScriptTarget.ES6,