From 976f9487b0e2f9cb5db98f2c91f10ac487512ec3 Mon Sep 17 00:00:00 2001 From: guerler Date: Tue, 20 Sep 2022 10:44:04 -0400 Subject: [PATCH] Expand usage of writable prop in history panel to allow read only histories --- client/src/components/History/Content/ContentItem.vue | 5 ++++- client/src/components/History/Content/ContentOptions.vue | 9 +++++---- .../History/Content/Dataset/DatasetActions.vue | 3 ++- .../History/Content/Dataset/DatasetDetails.vue | 2 ++ .../components/History/CurrentHistory/HistoryPanel.vue | 7 ++++++- client/src/components/History/HistoryView.vue | 1 + client/src/components/History/Layout/DetailsLayout.vue | 2 +- 7 files changed, 21 insertions(+), 8 deletions(-) diff --git a/client/src/components/History/Content/ContentItem.vue b/client/src/components/History/Content/ContentItem.vue index 3711c7a9f03..785ab82fa70 100644 --- a/client/src/components/History/Content/ContentItem.vue +++ b/client/src/components/History/Content/ContentItem.vue @@ -52,6 +52,7 @@ @@ -97,6 +98,7 @@ export default { }, props: { dataset: { type: Object, required: true }, + writable: { type: Boolean, default: true }, showHighlight: { type: Boolean, default: false }, itemUrls: { type: Object, required: true }, }, diff --git a/client/src/components/History/CurrentHistory/HistoryPanel.vue b/client/src/components/History/CurrentHistory/HistoryPanel.vue index ded6ad9d475..d924aa70d63 100644 --- a/client/src/components/History/CurrentHistory/HistoryPanel.vue +++ b/client/src/components/History/CurrentHistory/HistoryPanel.vue @@ -35,7 +35,10 @@ :filter-text.sync="filterText" :show-advanced.sync="showAdvanced" />
- + diff --git a/client/src/components/History/Layout/DetailsLayout.vue b/client/src/components/History/Layout/DetailsLayout.vue index 629388419b3..91640105ada 100644 --- a/client/src/components/History/Layout/DetailsLayout.vue +++ b/client/src/components/History/Layout/DetailsLayout.vue @@ -1,7 +1,7 @@