From 0e513d7a9590d8231d71503d2f6fc789b7f87543 Mon Sep 17 00:00:00 2001 From: Mateus Machado Luna Date: Thu, 12 Apr 2018 10:42:12 -0300 Subject: [PATCH] Adds 'Creation' field to Items List. This field is the default on sorting, has the value of wordpress 'post_date'. Alings vertically items o table. --- .../components/lists/collections-list.vue | 2 +- src/admin/components/lists/items-list.vue | 50 +++++++++++++++---- .../components/search/search-control.vue | 3 +- src/admin/pages/lists/collections-page.vue | 4 +- src/admin/pages/lists/items-page.vue | 5 +- src/js/store/modules/search/actions.js | 4 +- 6 files changed, 51 insertions(+), 17 deletions(-) diff --git a/src/admin/components/lists/collections-list.vue b/src/admin/components/lists/collections-list.vue index f10a11325..cb8c3b600 100644 --- a/src/admin/components/lists/collections-list.vue +++ b/src/admin/components/lists/collections-list.vue @@ -221,7 +221,7 @@ export default { @import "../../scss/_variables.scss"; .table-thumb { - max-height: 38px !important; + max-height: 55px !important; vertical-align: middle !important; } diff --git a/src/admin/components/lists/items-list.vue b/src/admin/components/lists/items-list.vue index 252172874..5db321e5f 100644 --- a/src/admin/components/lists/items-list.vue +++ b/src/admin/components/lists/items-list.vue @@ -28,38 +28,51 @@ :custom-key="column.slug" :label="column.name" :visible="column.visible" - :width="column.field == 'row_actions' ? 78 : column.field == 'featured_image' ? 55 : undefined "> + :class="column.field == 'row_creation' ? 'row-creation' : ''" + :width="column.field == 'row_actions' ? 78 : column.field == 'row_thumbnail' ? 55 : undefined "> - @@ -69,6 +82,7 @@ - diff --git a/src/admin/components/search/search-control.vue b/src/admin/components/search/search-control.vue index 8ea99af90..add66d269 100644 --- a/src/admin/components/search/search-control.vue +++ b/src/admin/components/search/search-control.vue @@ -29,11 +29,12 @@