IDEMPIERE-6282 : idempiere login page enhancement (#2509)
* IDEMPIERE-6282 : idempiere login page enhancement * revert latest change and added APPLICATION_LOGIN_LEFT_PANEL_SHOWN to configure the left panel visibilty * remove unnecessary change
This commit is contained in:
parent
8b511cdaa1
commit
19305437e9
|
@ -66,6 +66,7 @@ public class MSysConfig extends X_AD_SysConfig
|
|||
public static final String APPLICATION_IMPLEMENTATION_VENDOR = "APPLICATION_IMPLEMENTATION_VENDOR";
|
||||
public static final String APPLICATION_IMPLEMENTATION_VENDOR_SHOWN = "APPLICATION_IMPLEMENTATION_VENDOR_SHOWN";
|
||||
public static final String APPLICATION_JVM_VERSION_SHOWN = "APPLICATION_JVM_VERSION_SHOWN";
|
||||
public static final String APPLICATION_LOGIN_LEFT_PANEL_SHOWN = "APPLICATION_LOGIN_LEFT_PANEL_SHOWN";
|
||||
public static final String APPLICATION_MAIN_VERSION = "APPLICATION_MAIN_VERSION";
|
||||
public static final String APPLICATION_MAIN_VERSION_SHOWN = "APPLICATION_MAIN_VERSION_SHOWN";
|
||||
public static final String APPLICATION_OS_INFO_SHOWN = "APPLICATION_OS_INFO_SHOWN";
|
||||
|
|
|
@ -22,6 +22,7 @@ import javax.servlet.ServletRequest;
|
|||
import org.adempiere.webui.part.AbstractUIPart;
|
||||
import org.adempiere.webui.theme.ThemeManager;
|
||||
import org.adempiere.webui.window.LoginWindow;
|
||||
import org.compiere.model.MSysConfig;
|
||||
import org.zkoss.web.servlet.Servlets;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.Executions;
|
||||
|
@ -85,12 +86,16 @@ public class WLogin extends AbstractUIPart
|
|||
if (ua.contains("ipad") || ua.contains("iphone") || ua.contains("android"))
|
||||
mobile = true;
|
||||
}
|
||||
|
||||
var leftPanelConfig = MSysConfig.getValue(MSysConfig.APPLICATION_LOGIN_LEFT_PANEL_SHOWN, "Y");
|
||||
|
||||
West west = layout.getWest();
|
||||
if (west.getFirstChild() != null && west.getFirstChild().getFirstChild() != null) {
|
||||
west.setCollapsible(true);
|
||||
west.setSplittable(true);
|
||||
if (mobile) {
|
||||
if(leftPanelConfig.equals("I")) {
|
||||
west.setVisible(false);
|
||||
}else if (mobile || leftPanelConfig.equals("H")) {
|
||||
west.setOpen(false);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue