From b44d006148272ca4e0220c087d6736638e6b49c5 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Fri, 1 Jun 2018 13:49:56 -0300 Subject: [PATCH] Fixes not displayed by default metadata that where passed to fecth only when using template view modes. --- src/admin/pages/lists/items-page.vue | 11 +++++++---- src/admin/theme-items-list.vue | 1 + 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/admin/pages/lists/items-page.vue b/src/admin/pages/lists/items-page.vue index 5ad121223..63ee01f49 100644 --- a/src/admin/pages/lists/items-page.vue +++ b/src/admin/pages/lists/items-page.vue @@ -491,11 +491,12 @@ for (let field of this.fields) { if (field.display !== 'never') { - let display = true; + let display; - if (field.display === 'no') { + if (field.display == 'no') display = false; - } + else if (field.display == 'yes') + display = true; this.tableFields.push( { @@ -508,7 +509,8 @@ display: display } ); - fetchOnlyFieldIds.push(field.id); + if (display) + fetchOnlyFieldIds.push(field.id); } } @@ -745,6 +747,7 @@ .table-container { padding-left: 8.333333%; padding-right: 8.333333%; + min-height: 200px; //height: calc(100% - 82px); } diff --git a/src/admin/theme-items-list.vue b/src/admin/theme-items-list.vue index 6f349ce7b..eb625db50 100644 --- a/src/admin/theme-items-list.vue +++ b/src/admin/theme-items-list.vue @@ -463,6 +463,7 @@ export default { #items-list-area { width: 100%; + overflow-y: unset; } }