From f25451e86caf546c6458edae30f0638119132aba Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Wed, 2 Feb 2022 17:06:20 -0300 Subject: [PATCH] Adds more variables to display the items list on admin #659 --- .../lists/collections-home-list.vue | 15 +++ .../admin/components/lists/items-list.vue | 54 ++++----- .../components/other/items-status-tabs.vue | 6 +- .../components/search/filters-items-list.vue | 2 +- src/views/admin/js/admin-utilities.js | 103 ++++++++++-------- src/views/admin/pages/lists/items-page.vue | 41 +++++-- .../admin/pages/singles/collection-page.vue | 2 +- 7 files changed, 131 insertions(+), 92 deletions(-) diff --git a/src/views/admin/components/lists/collections-home-list.vue b/src/views/admin/components/lists/collections-home-list.vue index b08880c9e..ad98f329a 100644 --- a/src/views/admin/components/lists/collections-home-list.vue +++ b/src/views/admin/components/lists/collections-home-list.vue @@ -156,6 +156,21 @@ +
  • + + + + + + + + +
  • @@ -130,12 +130,12 @@ trap-focus> + v-if="!isOnTrash && !$adminOptions.hideItemsListContextMenuOpenItemOption"> {{ $i18n.getFrom('items','view_item') }} + v-if="!isOnTrash && !$adminOptions.hideItemsListContextMenuOpenItemOnNewTabOption"> {{ $i18n.get('label_open_item_new_tab') }} + v-if="contextMenuItem != null && contextMenuItem.current_user_can_edit && !$adminOptions.hideItemsListContextMenuEditItemOption"> {{ $i18n.getFrom('items','edit_item') }} + v-if="contextMenuItem != null && contextMenuItem.current_user_can_edit && !$adminOptions.hideItemsListContextMenuCopyItemOption"> {{ $i18n.get('label_make_copies_of_item') }} + v-if="contextMenuItem != null && contextMenuItem.current_user_can_edit && !$adminOptions.hideItemsListContextMenuDeleteItemOption"> {{ $i18n.get('label_delete_item') }} @@ -165,7 +165,7 @@
    @@ -894,7 +894,7 @@
    + v-if="collectionId && !$adminOptions.hideItemsListSelection && ($adminOptions.itemsSingleSelectionMode || $adminOptions.itemsMultipleSelectionMode || (collection && collection.current_user_can_bulk_edit))">  
    @@ -1119,7 +1119,7 @@
    - +
    + collection.current_user_can_edit_items" + class="search-control-item"> + + {{ $i18n.getFrom('items','add_new') }} + {{ $i18n.get('add') }} + + + + {{ $i18n.get('info_bulk_add_items') }} - +