mirror of
https://github.com/jpros/tacticalrmm-web.git
synced 2026-01-19 19:40:50 +00:00
Hide custom fields with no value
This commit is contained in:
@@ -160,7 +160,7 @@
|
|||||||
<div v-else>No checks</div>
|
<div v-else>No checks</div>
|
||||||
|
|
||||||
|
|
||||||
<span class="text-subtitle2 text-bold block q-mt-xl">Custom Fields</span>
|
<span v-if="customFields.length > 0" class="text-subtitle2 text-bold block q-mt-xl">Custom Fields</span>
|
||||||
<q-list dense>
|
<q-list dense>
|
||||||
|
|
||||||
<q-item v-for="(field, i) in customFields" :key="field + i">
|
<q-item v-for="(field, i) in customFields" :key="field + i">
|
||||||
@@ -262,7 +262,7 @@ export default {
|
|||||||
const ret = [];
|
const ret = [];
|
||||||
for (const customField of summary.value.custom_fields) {
|
for (const customField of summary.value.custom_fields) {
|
||||||
const definition = customFieldsDefinitions.value.find((def) => def.id === customField.field)
|
const definition = customFieldsDefinitions.value.find((def) => def.id === customField.field)
|
||||||
if (definition && !definition.hide_in_ui) {
|
if (definition && !definition.hide_in_ui && customField.value?.length > 0) {
|
||||||
ret.push({
|
ret.push({
|
||||||
name: definition.name,
|
name: definition.name,
|
||||||
value: customField.value,
|
value: customField.value,
|
||||||
|
|||||||
Reference in New Issue
Block a user