Fix: Docker 'WebUI' content menu item now hidden when the web ui link is empty

This commit is contained in:
Eric Schultz
2016-03-13 11:37:25 -05:00
parent eb158b7e58
commit 752bbd801c

View File

@@ -2,7 +2,7 @@ var eventURL = "/plugins/dynamix.docker.manager/include/Events.php";
function addDockerContainerContext(container, image, template, started, update, autostart, webui, id) {
var opts = [{header: container, image: "/plugins/dynamix.docker.manager/images/dynamix.docker.manager.png"}];
if (started && (webui != "#")) {
if (started && (webui !== "" && webui != "#")) {
opts.push({text: 'WebUI', icon: 'fa-globe', href: webui, target: '_blank'});
opts.push({divider: true});
}