From 1a9aa620cfd86ee8d5341a71d8b792f83f20fa1e Mon Sep 17 00:00:00 2001 From: guerler Date: Wed, 6 Jul 2022 07:49:33 +0300 Subject: [PATCH 01/16] Add missing flag to generic item content wrapper --- client/src/components/History/Content/GenericItem.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/components/History/Content/GenericItem.vue b/client/src/components/History/Content/GenericItem.vue index abe04cdf46f..982de872647 100644 --- a/client/src/components/History/Content/GenericItem.vue +++ b/client/src/components/History/Content/GenericItem.vue @@ -8,6 +8,7 @@ :name="item.name" :expand-dataset="expandDataset" :is-dataset="item.history_content_type == 'dataset'" + :is-history-item="false" @update:expand-dataset="expandDataset = $event" @view-collection="viewCollection = !viewCollection" @delete="onDelete" From 1d9ae14bbadf4feac0ac175efa650b753f97b627 Mon Sep 17 00:00:00 2001 From: guerler Date: Wed, 6 Jul 2022 07:51:13 +0300 Subject: [PATCH 02/16] Remove redundant isHistPanel prop, should be equivalent to isHistoryItem? --- client/src/components/History/Content/ContentItem.vue | 3 +-- client/src/components/History/CurrentHistory/HistoryPanel.vue | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/client/src/components/History/Content/ContentItem.vue b/client/src/components/History/Content/ContentItem.vue index 6504ae300e6..c6dea2e0353 100644 --- a/client/src/components/History/Content/ContentItem.vue +++ b/client/src/components/History/Content/ContentItem.vue @@ -80,7 +80,7 @@ @@ -116,7 +116,6 @@ export default { id: { type: Number, required: true }, isDataset: { type: Boolean, default: true }, isHistoryItem: { type: Boolean, default: true }, - isHistPanel: { type: Boolean, default: false }, item: { type: Object, required: true }, name: { type: String, required: true }, selected: { type: Boolean, default: false }, diff --git a/client/src/components/History/CurrentHistory/HistoryPanel.vue b/client/src/components/History/CurrentHistory/HistoryPanel.vue index f90a3965007..66a1c1cf7f8 100644 --- a/client/src/components/History/CurrentHistory/HistoryPanel.vue +++ b/client/src/components/History/CurrentHistory/HistoryPanel.vue @@ -105,7 +105,6 @@ :name="item.name" :expand-dataset="isExpanded(item)" :is-dataset="isDataset(item)" - is-hist-panel :highlight="getHighlight(item)" :selected="isSelected(item)" :selectable="showSelection" From 6eafb0303a4e24c17ba2eeb3482d1d1ee42790d2 Mon Sep 17 00:00:00 2001 From: guerler Date: Wed, 6 Jul 2022 08:04:27 +0300 Subject: [PATCH 03/16] Set default for isHistoryItem to false --- client/src/components/History/Content/ContentItem.vue | 2 +- client/src/components/History/Content/GenericElement.vue | 1 - client/src/components/History/Content/GenericItem.vue | 1 - .../components/History/CurrentCollection/CollectionPanel.vue | 1 - client/src/components/History/CurrentHistory/HistoryPanel.vue | 1 + 5 files changed, 2 insertions(+), 4 deletions(-) diff --git a/client/src/components/History/Content/ContentItem.vue b/client/src/components/History/Content/ContentItem.vue index c6dea2e0353..049f11f36ca 100644 --- a/client/src/components/History/Content/ContentItem.vue +++ b/client/src/components/History/Content/ContentItem.vue @@ -115,7 +115,7 @@ export default { highlight: { type: String, default: null }, id: { type: Number, required: true }, isDataset: { type: Boolean, default: true }, - isHistoryItem: { type: Boolean, default: true }, + isHistoryItem: { type: Boolean, default: false }, item: { type: Object, required: true }, name: { type: String, required: true }, selected: { type: Boolean, default: false }, diff --git a/client/src/components/History/Content/GenericElement.vue b/client/src/components/History/Content/GenericElement.vue index c8e8d1b0172..7b8f4068501 100644 --- a/client/src/components/History/Content/GenericElement.vue +++ b/client/src/components/History/Content/GenericElement.vue @@ -6,7 +6,6 @@ :name="item.element_identifier" :is-dataset="item.element_type == 'hda'" :expand-dataset="expandDataset" - :is-history-item="false" @update:expand-dataset="expandDataset = $event" @view-collection="viewCollection = !viewCollection" /> diff --git a/client/src/components/History/Content/GenericItem.vue b/client/src/components/History/Content/GenericItem.vue index 982de872647..abe04cdf46f 100644 --- a/client/src/components/History/Content/GenericItem.vue +++ b/client/src/components/History/Content/GenericItem.vue @@ -8,7 +8,6 @@ :name="item.name" :expand-dataset="expandDataset" :is-dataset="item.history_content_type == 'dataset'" - :is-history-item="false" @update:expand-dataset="expandDataset = $event" @view-collection="viewCollection = !viewCollection" @delete="onDelete" diff --git a/client/src/components/History/CurrentCollection/CollectionPanel.vue b/client/src/components/History/CurrentCollection/CollectionPanel.vue index 3977d89036f..025f48d74f3 100644 --- a/client/src/components/History/CurrentCollection/CollectionPanel.vue +++ b/client/src/components/History/CurrentCollection/CollectionPanel.vue @@ -28,7 +28,6 @@ :name="item.element_identifier" :expand-dataset="isExpanded(item)" :is-dataset="item.element_type == 'hda'" - :is-history-item="false" @update:expand-dataset="setExpanded(item, $event)" @view-collection="onViewSubCollection" /> diff --git a/client/src/components/History/CurrentHistory/HistoryPanel.vue b/client/src/components/History/CurrentHistory/HistoryPanel.vue index 66a1c1cf7f8..dbc3cf438c2 100644 --- a/client/src/components/History/CurrentHistory/HistoryPanel.vue +++ b/client/src/components/History/CurrentHistory/HistoryPanel.vue @@ -100,6 +100,7 @@