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 @@
context = this,
workflow_list,
group_mapping,
view_list,
//view_list,
action_list,
clone_list,
jump_list;
......@@ -106,7 +106,7 @@
});
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);
clone_list = JSON.stringify(group_mapping.action_object_clone_action);
jump_list = JSON.stringify(group_mapping.action_object_jio_jump);
......@@ -122,7 +122,7 @@
visible: visible,
display_workflow_list: display_workflow_list,
workflow_list: workflow_list,
view_list: view_list,
//view_list: view_list,
action_list: action_list,
clone_list: clone_list,
jump_list: jump_list,
......@@ -139,7 +139,7 @@
var i,
gadget = this,
workflow_list,
view_list,
view_list = [],
action_list,
clone_list,
jump_list,
......@@ -250,17 +250,18 @@
modification_dict.hasOwnProperty("clone_list") ||
modification_dict.hasOwnProperty("jump_list") ||
modification_dict.hasOwnProperty("jio_key") ||
modification_dict.hasOwnProperty("view_list") ||
//modification_dict.hasOwnProperty("view_list") ||
modification_dict.hasOwnProperty("extra_menu_list"))) {
dl_fragment = document.createDocumentFragment();
gadget.element.querySelector("dl").textContent = '';
if (this.state.view_list !== undefined) {
if ((this.state.action_list !== undefined) ||
(this.state.jump_list !== undefined)) {
queue
.push(function () {
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);
clone_list = JSON.parse(gadget.state.clone_list);
jump_list = JSON.parse(gadget.state.jump_list);
......@@ -279,8 +280,10 @@
});
})
.push(function (result_dict) {
/*
appendDt(dl_fragment, result_dict.translation_dict.Views, 'eye',
view_list, result_dict.url_list, 0);
*/
if (gadget.state.display_workflow_list) {
// show Workflows only on document
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