From 7db2f9f3c023f10f24f5de23b504b783f02bd20e Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Sun, 25 Apr 2021 20:18:45 +0200 Subject: [PATCH 1/2] Implement switch to history modal for beta history panel This seems to me like the cleanest and fastest way to switch histories. It doesn't show number of items, it doesn't have any operations to keep this modal as simple and fast as possible. --- .../History/CurrentHistoryPanel.vue | 14 ++- .../src/components/History/HistoriesMenu.vue | 6 + .../components/History/HistorySelector.vue | 118 ++++++++++++++++-- lib/galaxy/managers/histories.py | 1 + 4 files changed, 128 insertions(+), 11 deletions(-) diff --git a/client/src/components/History/CurrentHistoryPanel.vue b/client/src/components/History/CurrentHistoryPanel.vue index cae311f4e9b..0adeefd884d 100644 --- a/client/src/components/History/CurrentHistoryPanel.vue +++ b/client/src/components/History/CurrentHistoryPanel.vue @@ -7,9 +7,11 @@ - + @@ -36,5 +38,15 @@ export default { HistorySelector, HistoriesMenu, }, + data() { + return { + showModal: false, + }; + }, + methods: { + showModalHandler(event) { + this.showModal = !this.showModal; + }, + }, }; diff --git a/client/src/components/History/HistoriesMenu.vue b/client/src/components/History/HistoriesMenu.vue index e04f4731501..62049fcc5d9 100644 --- a/client/src/components/History/HistoriesMenu.vue +++ b/client/src/components/History/HistoriesMenu.vue @@ -1,5 +1,11 @@ diff --git a/lib/galaxy/managers/histories.py b/lib/galaxy/managers/histories.py index b3975772f94..534d6f123dc 100644 --- a/lib/galaxy/managers/histories.py +++ b/lib/galaxy/managers/histories.py @@ -247,6 +247,7 @@ class HistorySerializer(sharable.SharableModelSerializer, deletable.PurgableSeri 'published', 'annotation', 'tags', + 'update_time', ]) self.add_view('detailed', [ 'contents_url', From 3b8488a1ddbcf72b19275a0fdcfc6d995024f15e Mon Sep 17 00:00:00 2001 From: Marius van den Beek Date: Wed, 28 Apr 2021 17:37:24 +0200 Subject: [PATCH 2/2] Limit modal height and make it scrollable Thanks Mason! Co-authored-by: Mason --- client/src/components/History/HistorySelector.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/components/History/HistorySelector.vue b/client/src/components/History/HistorySelector.vue index b33b5ec398b..e27e0241f3a 100644 --- a/client/src/components/History/HistorySelector.vue +++ b/client/src/components/History/HistorySelector.vue @@ -14,6 +14,7 @@ :current-page="currentPage" @filtered="onFiltered" @row-clicked="switchToHistory" + sticky-header="50vh" >