Skip to content

Commit

Permalink
hide sections when empty
Browse files Browse the repository at this point in the history
  • Loading branch information
cconard96 committed Jan 7, 2025
1 parent 2e609f9 commit 3a8108a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/src/vue/CustomObject/FieldPreview/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@
<div class="h-100 d-flex col-auto flex-column p-0 ps-2 fields-sidebar">
<span class="fs-2">{{ __('Add more fields') }}</span>
<input type="text" class="form-control mb-3" name="search" :placeholder="__('Search')" v-model="search" />
<span class="fs-3">{{ __('Native fields') }}</span>
<span v-if="unused_native_fields.size > 0" class="fs-3">{{ __('Native fields') }}</span>
<Field v-for="[field_key, unused_field] of getMatched(unused_native_fields)" :key="field_key" :field_key="field_key"
:is_active="false">
<template v-slot:field_label>{{ unused_field.label }}</template>
</Field>
<span class="fs-3 mt-3">{{ __('Custom fields') }}</span>
<span v-if="unused_custom_fields.size > 0" class="fs-3 mt-3">{{ __('Custom fields') }}</span>
<Field v-for="[field_key, unused_field] of getMatched(unused_custom_fields)" :key="field_key" :field_key="field_key"
:is_active="false">
<template v-slot:field_label>{{ unused_field.label }}</template>
Expand Down

0 comments on commit 3a8108a

Please sign in to comment.