Skip to content

Commit

Permalink
Merge pull request #280 from SelfhostedPro/projects
Browse files Browse the repository at this point in the history
fixed udp ports in edit form
  • Loading branch information
SelfhostedPro authored Feb 9, 2021
2 parents 98309a9 + 71c2939 commit dff7d31
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
[![Layers](https://img.shields.io/microbadger/layers/selfhostedpro/yacht?color=%2341B883&label=Layers&logo=docker&logoColor=%2341B883&style=for-the-badge)](https://hub.docker.com/r/selfhostedpro/yacht)
[![Open Collective](https://img.shields.io/opencollective/all/selfhostedpro.svg?color=%2341B883&logoColor=%2341B883&style=for-the-badge&label=Supporters&logo=open%20collective)](https://opencollective.com/selfhostedpro "please consider helping me by either donating or contributing")

<a href="https://m.do.co/c/d4aa430d72d9">
<img src="https://opensource.nyc3.cdn.digitaloceanspaces.com/attribution/assets/PoweredByDO/DO_Powered_by_Badge_blue.png" width="30%" />
</a>

## Yacht
Yacht is a container management UI with a focus on templates and 1-click deployments.

Expand Down
14 changes: 9 additions & 5 deletions frontend/src/components/applications/ApplicationsForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -787,10 +787,14 @@ export default {
transform_ports(ports, app) {
let portlist = [];
for (let port in ports) {
let _port = port.split("/") || '';
var cport = _port[0] || '';
var hport = ports[port][0].HostPort || '';
var proto = _port[1] || '';
let _port = port.split("/") || "";
var cport = _port[0] || "";
if (ports[port]) {
var hport = ports[port][0].HostPort || "";
} else {
continue;
}
var proto = _port[1] || "";
var label = app.Config.Labels[`local.yacht.port.${hport}`] || "";
let port_entry = {
cport: cport,
Expand Down Expand Up @@ -914,7 +918,7 @@ export default {
labels: this.transform_labels(app.Config.Labels) || [],
sysctls: this.transform_labels(app.HostConfig.Sysctls),
cap_add: app.HostConfig.CapAdd || [],
edit: true
edit: true,
};
}
},
Expand Down

0 comments on commit dff7d31

Please sign in to comment.