Fix shared histories navigation

This commit is contained in:
davelopez
2023-02-08 08:45:33 +01:00
parent da48ece950
commit 015a957eaa
3 changed files with 11 additions and 3 deletions
+9 -1
View File
@@ -5,8 +5,16 @@
<script>
import HistoryList from "./history-list";
export default {
props: {
actionId: {
type: String,
required: true,
},
},
mounted() {
new HistoryList.View().$el.appendTo(this.$refs.target);
new HistoryList.View({
action_id: this.actionId,
}).$el.appendTo(this.$refs.target);
},
};
</script>
+1 -1
View File
@@ -65,7 +65,7 @@ var View = Backbone.View.extend({
this.active_tab = "user";
this.model = new Backbone.Model();
Utils.get({
url: `${getAppRoot()}history/list?${$.param(Galaxy.params)}`,
url: `${getAppRoot()}history/${options.action_id}?${$.param(Galaxy.params)}`,
success: (response) => {
this.model.set(response);
this.render();
+1 -1
View File
@@ -237,7 +237,7 @@ export function getRouter(Galaxy) {
props: true,
},
{
path: "histories/list",
path: "histories/:actionId",
component: GridHistory,
props: true,
redirect: redirectAnon(),