Commit bfd807d5 authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel: do not display action view list in the panel

parent 304d8a3a
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
context = this, context = this,
workflow_list, workflow_list,
group_mapping, group_mapping,
view_list, //view_list,
action_list, action_list,
clone_list, clone_list,
jump_list; jump_list;
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
}); });
workflow_list = JSON.stringify(group_mapping.action_workflow); workflow_list = JSON.stringify(group_mapping.action_workflow);
view_list = JSON.stringify(group_mapping.action_object_view); //view_list = JSON.stringify(group_mapping.action_object_view);
action_list = JSON.stringify(group_mapping.action_object_jio_action); action_list = JSON.stringify(group_mapping.action_object_jio_action);
clone_list = JSON.stringify(group_mapping.action_object_clone_action); clone_list = JSON.stringify(group_mapping.action_object_clone_action);
jump_list = JSON.stringify(group_mapping.action_object_jio_jump); jump_list = JSON.stringify(group_mapping.action_object_jio_jump);
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
visible: visible, visible: visible,
display_workflow_list: display_workflow_list, display_workflow_list: display_workflow_list,
workflow_list: workflow_list, workflow_list: workflow_list,
view_list: view_list, //view_list: view_list,
action_list: action_list, action_list: action_list,
clone_list: clone_list, clone_list: clone_list,
jump_list: jump_list, jump_list: jump_list,
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
var i, var i,
gadget = this, gadget = this,
workflow_list, workflow_list,
view_list, view_list = [],
action_list, action_list,
clone_list, clone_list,
jump_list, jump_list,
...@@ -250,17 +250,18 @@ ...@@ -250,17 +250,18 @@
modification_dict.hasOwnProperty("clone_list") || modification_dict.hasOwnProperty("clone_list") ||
modification_dict.hasOwnProperty("jump_list") || modification_dict.hasOwnProperty("jump_list") ||
modification_dict.hasOwnProperty("jio_key") || modification_dict.hasOwnProperty("jio_key") ||
modification_dict.hasOwnProperty("view_list") || //modification_dict.hasOwnProperty("view_list") ||
modification_dict.hasOwnProperty("extra_menu_list"))) { modification_dict.hasOwnProperty("extra_menu_list"))) {
dl_fragment = document.createDocumentFragment(); dl_fragment = document.createDocumentFragment();
gadget.element.querySelector("dl").textContent = ''; gadget.element.querySelector("dl").textContent = '';
if (this.state.view_list !== undefined) { if ((this.state.action_list !== undefined) ||
(this.state.jump_list !== undefined)) {
queue queue
.push(function () { .push(function () {
var parameter_list = []; var parameter_list = [];
view_list = JSON.parse(gadget.state.view_list); //view_list = JSON.parse(gadget.state.view_list);
action_list = JSON.parse(gadget.state.action_list); action_list = JSON.parse(gadget.state.action_list);
clone_list = JSON.parse(gadget.state.clone_list); clone_list = JSON.parse(gadget.state.clone_list);
jump_list = JSON.parse(gadget.state.jump_list); jump_list = JSON.parse(gadget.state.jump_list);
...@@ -279,8 +280,10 @@ ...@@ -279,8 +280,10 @@
}); });
}) })
.push(function (result_dict) { .push(function (result_dict) {
/*
appendDt(dl_fragment, result_dict.translation_dict.Views, 'eye', appendDt(dl_fragment, result_dict.translation_dict.Views, 'eye',
view_list, result_dict.url_list, 0); view_list, result_dict.url_list, 0);
*/
if (gadget.state.display_workflow_list) { if (gadget.state.display_workflow_list) {
// show Workflows only on document // show Workflows only on document
appendDt(dl_fragment, result_dict.translation_dict.Workflows, 'random', appendDt(dl_fragment, result_dict.translation_dict.Workflows, 'random',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment