diff --git a/src/views/admin/components/metadata-types/compound/child-metadata-list.vue b/src/views/admin/components/metadata-types/compound/child-metadata-list.vue
index 26ce8a56b..04fc21d7d 100644
--- a/src/views/admin/components/metadata-types/compound/child-metadata-list.vue
+++ b/src/views/admin/components/metadata-types/compound/child-metadata-list.vue
@@ -42,6 +42,18 @@
+
+
+
-
-
-
+
@@ -118,6 +113,24 @@
}">
+
+
+
+
+
+
import { mapActions } from 'vuex';
import MetadatumEditionForm from '../../edition/metadatum-edition-form.vue';
+ import MetadatumDetails from '../../other/metadatum-details.vue';
import CustomDialog from '../../other/custom-dialog.vue';
export default {
components: {
- MetadatumEditionForm
+ MetadatumEditionForm,
+ MetadatumDetails
},
props: {
isRepositoryLevel: Boolean,
parent: Object,
isParentMultiple: Boolean,
- metadataNameFilterString: String
+ metadataNameFilterString: String,
+ collapseAll: {
+ type: Boolean,
+ default: new Boolean()
+ }
},
data() {
return {
@@ -209,7 +233,8 @@
hightlightedMetadatum: '',
editForms: {},
metadataSearchCancel: undefined,
- childrenMetadata: []
+ childrenMetadata: [],
+ collapses: {}
}
},
watch: {
@@ -232,6 +257,9 @@
this.childrenMetadata = [];
},
immediate: true
+ },
+ collapseAll(isCollapsed) {
+ this.childrenMetadata.forEach((metadatum) => this.$set(this.collapses, metadatum.id, isCollapsed));
}
},
beforeRouteLeave ( to, from, next ) {
@@ -397,6 +425,9 @@
isAvailableChildMetadata(to, from, item) {
return !['tainacan-compound', 'tainacan-taxonomy'].includes(item.id);
},
+ isCollapseOpen(metadatumId) {
+ return this.collapses[metadatumId] == true;
+ }
}
}
diff --git a/src/views/admin/components/search/filters-items-list.vue b/src/views/admin/components/search/filters-items-list.vue
index ebff775c1..fed4d6533 100644
--- a/src/views/admin/components/search/filters-items-list.vue
+++ b/src/views/admin/components/search/filters-items-list.vue
@@ -22,11 +22,13 @@
isRepositoryLevel) || filters.length > 0)"
class="link-style collapse-all"
@click="collapseAll = !collapseAll">
- {{ !collapseAll ? $i18n.get('label_collapse_all') : $i18n.get('label_expand_all') }}
+ class="has-text-secondary tainacan-icon tainacan-icon-1-125em"/>
+
+
+ {{ !collapseAll ? $i18n.get('label_collapse_all') : $i18n.get('label_expand_all') }}
@@ -495,6 +497,9 @@
.collapse-all {
display: inline-flex;
align-items: center;
+ margin-left: -0.65em;
+ }
+ .collapse-all__text {
font-size: 0.75em !important;
}
.filters-components-list {
diff --git a/src/views/admin/pages/lists/filters-page.vue b/src/views/admin/pages/lists/filters-page.vue
index b2b9d33ee..94aa6e81d 100644
--- a/src/views/admin/pages/lists/filters-page.vue
+++ b/src/views/admin/pages/lists/filters-page.vue
@@ -18,7 +18,7 @@