Skip to content

Commit e8c2545

Browse files
committed
Add back the JSX tag
1 parent f5e7486 commit e8c2545

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

site/frontend/src/pages/status_new/page.vue

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,17 @@ function getDuration(request: BenchmarkRequest): string {
5757
return "";
5858
}
5959
60+
function PullRequestLink({requestType}: {requestType: BenchmarkRequestType}) {
61+
if (requestType.type === ReleaseCommit) {
62+
return "";
63+
}
64+
return (
65+
<a href={`https://github.com/rust-lang/rust/pull/${requestType.pr}`}>
66+
#{requestType.pr}
67+
</a>
68+
);
69+
}
70+
6071
loadStatusNew(loading);
6172
</script>
6273

@@ -83,9 +94,11 @@ loadStatusNew(loading);
8394
<tbody>
8495
<template v-for="req in dataNew.timeline">
8596
<tr>
86-
<td v-html="pullRequestUrlAsHtml(req.requestType)"></td>
97+
<td><PullRequestLink :requestType="req.requestType" /></td>
8798
<td>{{ req.requestType.type }}</td>
88-
<td>{{ req.requestType.tag }}</td>
99+
<td>
100+
{{ req.requestType.tag }}
101+
</td>
89102
<td>{{ req.status.state }}</td>
90103
<td v-html="getCreatedAt(req)"></td>
91104
<td v-html="getDuration(req)"></td>

site/frontend/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"esModuleInterop": true,
99
"jsx": "preserve",
1010
"jsxFactory": "h",
11+
"jsxImportSource": "vue",
1112
"noUnusedLocals": true,
1213
"noUnusedParameters": true
1314
}

0 commit comments

Comments
 (0)