diff --git a/src/views/admin/components/edition/item-bulk-edition-form.vue b/src/views/admin/components/edition/item-bulk-edition-form.vue index a424b0258..70490696b 100644 --- a/src/views/admin/components/edition/item-bulk-edition-form.vue +++ b/src/views/admin/components/edition/item-bulk-edition-form.vue @@ -237,9 +237,7 @@ export default { 'updateItemDocument', ]), ...mapActions('bulkedition', [ - 'createEditGroup', - 'createSequenceEditGroup', - 'setStatusInBulk' + 'createSequenceEditGroup' ]), uploadFiles() { @@ -311,7 +309,7 @@ export default { this.isCreatingSequenceEditGroup = true; this.createSequenceEditGroup({ object: onlyItemIds, - collectionID: this.collectionId + collectionId: this.collectionId }).then((group) => { let sequenceId = group.id; this.isCreatingSequenceEditGroup = false; @@ -330,7 +328,7 @@ export default { totalItems: onlyItemIds.length, selectedForBulk: onlyItemIds, objectType: this.$i18n.get('items'), - collectionID: this.collectionId + collectionId: this.collectionId }, width: 'calc(100% - (2 * var(--tainacan-one-column)))', trapFocus: true diff --git a/src/views/admin/components/edition/item-edition-form.vue b/src/views/admin/components/edition/item-edition-form.vue index 085d43e94..016b12081 100644 --- a/src/views/admin/components/edition/item-edition-form.vue +++ b/src/views/admin/components/edition/item-edition-form.vue @@ -855,7 +855,11 @@ export default { this.isLoading = true; // Obtains current Item ID from Sequence - this.fetchItemIdInSequence({ collectionId: this.collectionId, sequenceId: this.sequenceId, itemPosition: this.itemPosition }) + this.fetchItemIdInSequence({ + collectionId: this.collectionId, + sequenceId: this.sequenceId, + itemPosition: this.itemPosition + }) .then(() => { this.itemId = this.itemIdInSequence; this.loadExistingItem(); @@ -903,7 +907,11 @@ export default { this.$userPrefs.set('sequence_' + this.sequenceId + '_position', this.itemPosition); // Obtains current Item ID from Sequence - this.fetchItemIdInSequence({ collectionId: this.collectionId, sequenceId: this.sequenceId, itemPosition: this.itemPosition }) + this.fetchItemIdInSequence({ + collectionId: this.collectionId, + sequenceId: this.sequenceId, + itemPosition: this.itemPosition + }) .then(() => { this.itemId = this.itemIdInSequence; this.loadExistingItem(); @@ -980,7 +988,6 @@ export default { ]), ...mapActions('bulkedition', [ 'fetchItemIdInSequence', - 'fetchGroup', 'fetchSequenceGroup' ]), ...mapGetters('bulkedition', [ diff --git a/src/views/admin/components/lists/items-list.vue b/src/views/admin/components/lists/items-list.vue index 45b77956e..7aa0abb35 100644 --- a/src/views/admin/components/lists/items-list.vue +++ b/src/views/admin/components/lists/items-list.vue @@ -1007,7 +1007,7 @@ export default { 'untrashItemsInBulk' ]), ...mapGetters('bulkedition', [ - 'getGroupID' + 'getGroupId' ]), ...mapActions('item', [ 'fetchItem' @@ -1042,7 +1042,7 @@ export default { totalItems: Object.keys(this.queryAllItemsSelected).length ? this.totalItems : this.selectedItems.length, selectedForBulk: Object.keys(this.queryAllItemsSelected).length ? this.queryAllItemsSelected : this.selectedItems, objectType: this.$i18n.get('items'), - collectionID: this.$route.params.collectionId, + collectionId: this.$route.params.collectionId, }, width: 'calc(100% - (2 * var(--tainacan-one-column)))', trapFocus: true @@ -1051,9 +1051,9 @@ export default { sequenceEditSelectedItems() { this.createSequenceEditGroup({ object: Object.keys(this.queryAllItemsSelected).length ? this.queryAllItemsSelected : this.selectedItems, - collectionID: this.collectionId + collectionId: this.collectionId }).then(() => { - let sequenceId = this.getGroupID(); + let sequenceId = this.getGroupId(); this.$router.push(this.$routerHelper.getCollectionSequenceEditPath(this.collectionId, sequenceId, 1)); }); }, @@ -1101,14 +1101,14 @@ export default { this.$emit('updateIsLoading', this.isLoading); this.createEditGroup({ - collectionID: this.collectionId, + collectionId: this.collectionId, object: [itemId] }).then(() => { - let groupID = this.getGroupID(); + let groupId = this.getGroupId(); this.untrashItemsInBulk({ - collectionID: this.collectionId, - groupID: groupID + collectionId: this.collectionId, + groupId: groupId }).then(() => { this.$eventBusSearch.loadItems(); }); @@ -1155,14 +1155,14 @@ export default { this.$emit('updateIsLoading', this.isLoading); this.createEditGroup({ - collectionID: this.collectionId, + collectionId: this.collectionId, object: Object.keys(this.queryAllItemsSelected).length ? this.queryAllItemsSelected : this.selectedItems }).then(() => { - let groupID = this.getGroupID(); + let groupId = this.getGroupId(); this.untrashItemsInBulk({ - collectionID: this.collectionId, - groupID: groupID + collectionId: this.collectionId, + groupId: groupId }).then(() => { this.$eventBusSearch.loadItems(); }); @@ -1185,22 +1185,22 @@ export default { this.$emit('updateIsLoading', this.isLoading); this.createEditGroup({ - collectionID: this.collectionId, + collectionId: this.collectionId, object: Object.keys(this.queryAllItemsSelected).length ? this.queryAllItemsSelected : this.selectedItems }).then(() => { - let groupID = this.getGroupID(); + let groupId = this.getGroupId(); if (this.isOnTrash) { this.deleteItemsInBulk({ - collectionID: this.collectionId, - groupID: groupID + collectionId: this.collectionId, + groupId: groupId }).then(() => { this.$eventBusSearch.loadItems(); }); } else { this.trashItemsInBulk({ - collectionID: this.collectionId, - groupID: groupID + collectionId: this.collectionId, + groupId: groupId }).then(() => { this.$eventBusSearch.loadItems(); }); diff --git a/src/views/admin/components/lists/terms-list.vue b/src/views/admin/components/lists/terms-list.vue index 8e145ba30..1ff394e25 100644 --- a/src/views/admin/components/lists/terms-list.vue +++ b/src/views/admin/components/lists/terms-list.vue @@ -510,7 +510,7 @@ export default { } .gray-icon .icon i::before, .gray-icon i::before { - max-width: 26px; + max-width: 1.25em; } } diff --git a/src/views/admin/components/modals/bulk-edition-modal.vue b/src/views/admin/components/modals/bulk-edition-modal.vue index f76dbae61..255d56775 100644 --- a/src/views/admin/components/modals/bulk-edition-modal.vue +++ b/src/views/admin/components/modals/bulk-edition-modal.vue @@ -24,17 +24,17 @@ + @input="addToBulkEditionProcedures($event, 'metadatum', criterion)"> - - +