IDEMPIERE-419 New icon shouldn't be displayed for special forms
This commit is contained in:
parent
f78d6dbcf2
commit
d561f2b556
|
@ -128,7 +128,7 @@ public class DPFavourites extends DashboardPanel implements EventListener<Event>
|
||||||
{
|
{
|
||||||
MTreeNode nd = (MTreeNode)en.nextElement();
|
MTreeNode nd = (MTreeNode)en.nextElement();
|
||||||
if (nd.isOnBar()) {
|
if (nd.isOnBar()) {
|
||||||
addNode(nd.getNode_ID(), nd.toString().trim(), nd.getDescription(), getIconFile(nd), nd.isWindow());
|
addNode(nd.getNode_ID(), nd.toString().trim(), nd.getDescription(), getIconFile(nd), (nd.isWindow() && !nd.isForm()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -221,7 +221,12 @@ public abstract class AbstractMenuPanel extends Panel implements EventListener<E
|
||||||
link.setImage("/images/mWorkFlow.png");
|
link.setImage("/images/mWorkFlow.png");
|
||||||
treeitem.setAttribute("menu.type", "workflow");
|
treeitem.setAttribute("menu.type", "workflow");
|
||||||
}
|
}
|
||||||
else
|
else if (mChildNode.isForm())
|
||||||
|
{
|
||||||
|
link.setImage("/images/mWindow.png");
|
||||||
|
treeitem.setAttribute("menu.type", "form");
|
||||||
|
}
|
||||||
|
else // Window
|
||||||
{
|
{
|
||||||
link.setImage("/images/mWindow.png");
|
link.setImage("/images/mWindow.png");
|
||||||
treeitem.setAttribute("menu.type", "window");
|
treeitem.setAttribute("menu.type", "window");
|
||||||
|
|
|
@ -157,9 +157,12 @@ public class MenuTreeFilterPanel extends Popup implements EventListener<Event>,
|
||||||
public void run(Treeitem treeItem) {
|
public void run(Treeitem treeItem) {
|
||||||
if (treeItem.getAttribute("menu.type") != null)
|
if (treeItem.getAttribute("menu.type") != null)
|
||||||
{
|
{
|
||||||
|
String menuType = (String) treeItem.getAttribute("menu.type");
|
||||||
|
if (menuType.equals("form"))
|
||||||
|
menuType = "window"; // treat forms as windows on filtering the menu
|
||||||
if (chk.isChecked())
|
if (chk.isChecked())
|
||||||
{
|
{
|
||||||
if (chk.getId().equals(treeItem.getAttribute("menu.type")))
|
if (chk.getId().equals(menuType))
|
||||||
{
|
{
|
||||||
boolean open = false;
|
boolean open = false;
|
||||||
Treeitem parent = treeItem.getParentItem();
|
Treeitem parent = treeItem.getParentItem();
|
||||||
|
@ -172,7 +175,7 @@ public class MenuTreeFilterPanel extends Popup implements EventListener<Event>,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (chk.getId().equals(treeItem.getAttribute("menu.type")))
|
if (chk.getId().equals(menuType))
|
||||||
{
|
{
|
||||||
boolean open = false;
|
boolean open = false;
|
||||||
Treeitem parent = treeItem.getParentItem();
|
Treeitem parent = treeItem.getParentItem();
|
||||||
|
|
Loading…
Reference in New Issue