From 239c29b44573f28ec3f659b4fecc5f5ba55a77c5 Mon Sep 17 00:00:00 2001 From: Mateus Machado Luna Date: Mon, 16 Dec 2019 13:19:09 -0300 Subject: [PATCH] Removes ItemMetadataBulkEditionPage. Uses modal on Bulk Add and Item Copy routines. Uses specific endpoint for sequence edition on both routines as well. #200. --- .../bulk-edition/bulk-edition-modal.vue | 2 +- .../edition/item-bulk-edition-form.vue | 51 +- .../item-metadata-bulk-edition-form.vue | 669 ------------------ .../components/other/item-copy-dialog.vue | 42 +- src/admin/js/router.js | 2 - src/admin/tainacan-admin-i18n.php | 1 + src/js/store/modules/bulk-edition/actions.js | 6 - src/js/store/modules/bulk-edition/getters.js | 4 - src/js/store/modules/bulk-edition/index.js | 3 +- .../store/modules/bulk-edition/mutations.js | 4 - 10 files changed, 47 insertions(+), 737 deletions(-) delete mode 100644 src/admin/components/edition/item-metadata-bulk-edition-form.vue diff --git a/src/admin/components/bulk-edition/bulk-edition-modal.vue b/src/admin/components/bulk-edition/bulk-edition-modal.vue index 3838b3394..244d4e78f 100644 --- a/src/admin/components/bulk-edition/bulk-edition-modal.vue +++ b/src/admin/components/bulk-edition/bulk-edition-modal.vue @@ -320,7 +320,7 @@ totalItems: Array, objectType: String, selectedForBulk: Object, - collectionID: Number, + collectionID: Number }, created(){ if (this.collectionID){ diff --git a/src/admin/components/edition/item-bulk-edition-form.vue b/src/admin/components/edition/item-bulk-edition-form.vue index c41de471f..a6e1939c2 100644 --- a/src/admin/components/edition/item-bulk-edition-form.vue +++ b/src/admin/components/edition/item-bulk-edition-form.vue @@ -153,7 +153,7 @@ style="margin-left: auto;" class="control"> @@ -176,6 +175,7 @@ - - diff --git a/src/admin/components/other/item-copy-dialog.vue b/src/admin/components/other/item-copy-dialog.vue index 86af52b14..54520a57a 100644 --- a/src/admin/components/other/item-copy-dialog.vue +++ b/src/admin/components/other/item-copy-dialog.vue @@ -81,9 +81,8 @@ @@ -94,6 +93,8 @@