|
Lines 190-201
Link Here
|
| 190 |
}); |
190 |
}); |
| 191 |
this._instance.public_ips = newArr; |
191 |
this._instance.public_ips = newArr; |
| 192 |
|
192 |
|
|
|
193 |
// display public dns_name |
| 194 |
if (this._instance.extra.dns_name) { |
| 195 |
this._instance.public_ips = this._instance.extra.dns_name; |
| 196 |
} |
| 197 |
|
| 193 |
// set values to form |
198 |
// set values to form |
| 194 |
this._generalForm.setFormValues(this._instance); |
199 |
this._generalForm.setFormValues(this._instance); |
| 195 |
|
200 |
|
| 196 |
// append public/private https link |
201 |
// append public/private https link |
| 197 |
if (this._instance.public_ips[0]) { |
202 |
if (this._instance.extra.dns_name) { |
| 198 |
widget = this._generalForm.getWidget('public_ips'); |
203 |
widget = this._generalForm.getWidget('public_ips'); |
|
|
204 |
this._appendLinkToLabel(widget, 'https://' + this._instance.public_ips); |
| 205 |
} else if (this._instance.public_ips[0]) { |
| 206 |
widget = this._generalForm.getWidget('public_ips'); |
| 199 |
this._appendLinkToLabel(widget, 'https://' + this._instance.public_ips[0]); |
207 |
this._appendLinkToLabel(widget, 'https://' + this._instance.public_ips[0]); |
| 200 |
} |
208 |
} |
| 201 |
if (this._instance.private_ips[0]) { |
209 |
if (this._instance.private_ips[0]) { |