Skip to content

Commit

Permalink
Add page sharing routes to client
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed May 4, 2018
1 parent c283fd5 commit ac0db77
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions client/galaxy/scripts/apps/analysis.js
Expand Up @@ -58,6 +58,7 @@ window.app = function app(options, bootstrapped) {
"(/)openids(/)list": "show_openids",
"(/)pages(/)create(/)": "show_pages_create",
"(/)pages(/)edit(/)": "show_pages_edit",
"(/)pages(/)sharing(/)": "show_pages_sharing",
"(/)pages(/)(:action_id)": "show_pages",
"(/)visualizations(/)": "show_plugins",
"(/)visualizations(/)edit(/)": "show_visualizations_edit",
Expand Down Expand Up @@ -264,6 +265,19 @@ window.app = function app(options, bootstrapped) {
);
},

show_pages_sharing: function() {
var sharingInstance = Vue.extend(Sharing);
var vm = document.createElement("div");
this.page.display(vm);
new sharingInstance({ propsData: {
id: QueryStringParsing.get("id"),
plural_name: "Pages",
model_class: "Page",
item_controller: "page",
list_controller: "pages",
} }).$mount(vm);
},

show_plugins: function() {
var pluginListInstance = Vue.extend(PluginList);
var vm = document.createElement("div");
Expand Down

0 comments on commit ac0db77

Please sign in to comment.