Skip to content

Commit 4c3d995

Browse files
committed
feat: improve host field UI for site list page
1 parent f01b9d0 commit 4c3d995

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

web/src/SiteListPage.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,18 @@ class SiteListPage extends BaseListPage {
206206
width: "80px",
207207
sorter: (a, b) => a.host.localeCompare(b.host),
208208
render: (text, record, index) => {
209+
let host = record.port;
210+
if (record.host !== "") {
211+
host = `${record.host}:${record.port}`;
212+
}
213+
209214
if (record.status === "Active") {
210-
return `${record.port}`;
215+
return host;
211216
}
212217

213218
return (
214219
<Tag color={"warning"}>
215-
{`${record.port}`}
220+
{host}
216221
</Tag>
217222
);
218223
},

0 commit comments

Comments
 (0)