From 64ccdfaa40e1b0907bce7dabadc442b8d0d1a022 Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Mon, 25 Sep 2023 15:34:51 +0200 Subject: [PATCH 01/14] Make the data key in VirtualList configurable --- client/src/components/History/Layout/ListingLayout.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/components/History/Layout/ListingLayout.vue b/client/src/components/History/Layout/ListingLayout.vue index 3c38b274fe6f..b0378191f113 100644 --- a/client/src/components/History/Layout/ListingLayout.vue +++ b/client/src/components/History/Layout/ListingLayout.vue @@ -4,7 +4,7 @@ ref="listing" class="listing" role="list" - data-key="id" + :data-key="dataKey" :offset="offset" :data-sources="items" :data-component="{}" @@ -32,6 +32,7 @@ export default { VirtualList, }, props: { + dataKey: { type: String, default: "id" }, offset: { type: Number, default: 0 }, loading: { type: Boolean, default: false }, items: { type: Array, default: null }, From 19e674ab07694c564b27e40c61344c42c99abc0e Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Mon, 25 Sep 2023 15:36:12 +0200 Subject: [PATCH 02/14] Set data key for DCEs to the `element_index` --- .../History/CurrentCollection/CollectionPanel.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/src/components/History/CurrentCollection/CollectionPanel.vue b/client/src/components/History/CurrentCollection/CollectionPanel.vue index c5d24b753815..2d0b88f5ae49 100644 --- a/client/src/components/History/CurrentCollection/CollectionPanel.vue +++ b/client/src/components/History/CurrentCollection/CollectionPanel.vue @@ -115,7 +115,11 @@ watch(
- +