未验证 提交 af354239 编写于 作者: S Sebastian Florek 提交者: GitHub

Fix pod details page loading (#6177)

* Fix container tcp socket undefined error

* Update i18n
上级 51e6af28
......@@ -3677,7 +3677,7 @@
<target state="new">TCP Socket</target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/frontend/common/components/probe/template.html</context>
<context context-type="linenumber">91</context>
<context context-type="linenumber">90</context>
</context-group>
</trans-unit>
<trans-unit id="367969280410641978" datatype="html">
......@@ -3685,7 +3685,7 @@
<target state="new">Exec Commands </target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/frontend/common/components/probe/template.html</context>
<context context-type="linenumber">104</context>
<context context-type="linenumber">99</context>
</context-group>
</trans-unit>
<trans-unit id="4749936818577754995" datatype="html">
......
......@@ -3681,7 +3681,7 @@
<target state="new">TCP Socket</target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/frontend/common/components/probe/template.html</context>
<context context-type="linenumber">91</context>
<context context-type="linenumber">90</context>
</context-group>
</trans-unit>
<trans-unit id="367969280410641978" datatype="html">
......@@ -3689,7 +3689,7 @@
<target state="new">Exec Commands </target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/frontend/common/components/probe/template.html</context>
<context context-type="linenumber">104</context>
<context context-type="linenumber">99</context>
</context-group>
</trans-unit>
<trans-unit id="4749936818577754995" datatype="html">
......
......@@ -2631,7 +2631,7 @@
<target state="new">TCP Socket</target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/frontend/common/components/probe/template.html</context>
<context context-type="linenumber">91</context>
<context context-type="linenumber">90</context>
</context-group>
</trans-unit>
<trans-unit id="367969280410641978" datatype="html">
......@@ -2639,7 +2639,7 @@
<target state="new">Exec Commands </target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/frontend/common/components/probe/template.html</context>
<context context-type="linenumber">104</context>
<context context-type="linenumber">99</context>
</context-group>
</trans-unit>
<trans-unit id="322645671410395107" datatype="html">
......
......@@ -2921,7 +2921,7 @@
<target state="new">TCP Socket</target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/frontend/common/components/probe/template.html</context>
<context context-type="linenumber">91</context>
<context context-type="linenumber">90</context>
</context-group>
</trans-unit>
<trans-unit id="367969280410641978" datatype="html">
......@@ -2929,7 +2929,7 @@
<target state="new">Exec Commands </target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/frontend/common/components/probe/template.html</context>
<context context-type="linenumber">104</context>
<context context-type="linenumber">99</context>
</context-group>
</trans-unit>
<trans-unit id="322645671410395107" datatype="html">
......
此差异已折叠。
......@@ -2910,7 +2910,7 @@
<target state="new">TCP Socket</target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/frontend/common/components/probe/template.html</context>
<context context-type="linenumber">91</context>
<context context-type="linenumber">90</context>
</context-group>
</trans-unit>
<trans-unit id="367969280410641978" datatype="html">
......@@ -2918,7 +2918,7 @@
<target state="new">Exec Commands </target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/frontend/common/components/probe/template.html</context>
<context context-type="linenumber">104</context>
<context context-type="linenumber">99</context>
</context-group>
</trans-unit>
<trans-unit id="322645671410395107" datatype="html">
......
......@@ -2925,7 +2925,7 @@
<target state="new">TCP Socket</target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/frontend/common/components/probe/template.html</context>
<context context-type="linenumber">91</context>
<context context-type="linenumber">90</context>
</context-group>
</trans-unit>
<trans-unit id="367969280410641978" datatype="html">
......@@ -2933,7 +2933,7 @@
<target state="new">Exec Commands </target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/frontend/common/components/probe/template.html</context>
<context context-type="linenumber">104</context>
<context context-type="linenumber">99</context>
</context-group>
</trans-unit>
<trans-unit id="322645671410395107" datatype="html">
......
......@@ -2921,7 +2921,7 @@
<target state="new">TCP Socket</target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/frontend/common/components/probe/template.html</context>
<context context-type="linenumber">91</context>
<context context-type="linenumber">90</context>
</context-group>
</trans-unit>
<trans-unit id="367969280410641978" datatype="html">
......@@ -2929,7 +2929,7 @@
<target state="new">Exec Commands </target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/frontend/common/components/probe/template.html</context>
<context context-type="linenumber">104</context>
<context context-type="linenumber">99</context>
</context-group>
</trans-unit>
<trans-unit id="322645671410395107" datatype="html">
......
......@@ -41,4 +41,17 @@ export class ProbeComponent {
return uri;
}
get tcpSocketAddr(): string {
if (!this.probe || !this.probe.tcpSocket) {
return '';
}
let addr = this.probe.tcpSocket.host || '[host]';
if (this.probe.tcpSocket.port) {
addr += `:${this.probe.tcpSocket.port}`;
}
return addr;
}
}
......@@ -85,16 +85,11 @@ limitations under the License.
</ng-container>
<ng-container *ngIf="probe?.tcpSocket">
<kd-property>
<div key
i18n>TCP Socket</div>
<div value>
<div *ngIf="probe?.tcpSocket?.host as value; else defaultHost">{{ value }}</div>
<ng-template #defaultHost>[host]</ng-template>
<div *ngIf="probe?.tcpSocket?.port">
:{{probe.httpGet.port}}
</div>
<div class="kd-code-block">{{tcpSocketAddr}}</div>
</div>
</kd-property>
</ng-container>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册