From 4e360985ee50ba1449001989deeb4fcc4df5636d Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Mon, 5 Aug 2024 18:14:48 -0300 Subject: [PATCH] Adds classes to hidden sections. --- .../components/edition/item-edition-form.vue | 81 +++++++++---------- 1 file changed, 39 insertions(+), 42 deletions(-) diff --git a/src/views/admin/components/edition/item-edition-form.vue b/src/views/admin/components/edition/item-edition-form.vue index 45b77ac88..ecd435a46 100644 --- a/src/views/admin/components/edition/item-edition-form.vue +++ b/src/views/admin/components/edition/item-edition-form.vue @@ -416,45 +416,45 @@ :message="metadataSection.description" /> - - + @@ -1696,13 +1696,10 @@ export default { }, onChangeCollapse(event, index) { - if (event && !this.metadataCollapses[index] && this.itemMetadata[index].metadatum && this.itemMetadata[index].metadatum['metadata_type'] === "Tainacan\\Metadata_Types\\GeoCoordinate") - this.$emitter.emit('itemEditionFormResize'); - this.metadataCollapses.splice(index, 1, event); }, toggleMetadataSectionCollapse(sectionIndex) { - if (!this.isMetadataNavigation) + if ( !this.isMetadataNavigation ) Object.assign( this.metadataSectionCollapses, { [sectionIndex]: (this.formErrorMessage ? true : !this.metadataSectionCollapses[sectionIndex]) }); }, onDeletePermanently() {