mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-28 02:58:18 +08:00
Fix shared histories navigation
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -237,7 +237,7 @@ export function getRouter(Galaxy) {
|
||||
props: true,
|
||||
},
|
||||
{
|
||||
path: "histories/list",
|
||||
path: "histories/:actionId",
|
||||
component: GridHistory,
|
||||
props: true,
|
||||
redirect: redirectAnon(),
|
||||
|
||||
Reference in New Issue
Block a user