Skip to content

Commit

Permalink
w/ link to slides (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
stanistan authored Jun 14, 2023
1 parent 480731c commit 2129102
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions frontend/components/Review/MetadataList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,41 @@ const props = defineProps({
});
const metadata = computed(() => {
const { model } = props;
const { pr, review, params } = model;
const permalink = `/${params.owner}/${params.repo}/pull/${params.number}/review-${params.review}`;
return [
{
heading: "Author",
text: props.model.pr.user.login,
href: props.model.pr.user.html_url,
text: pr.user.login,
href: pr.user.html_url,
},
{
heading: "Pull Request",
text: props.model.pr.html_url,
href: props.model.pr.html_url,
text: pr.html_url,
href: pr.html_url,
},
{
heading: "Pull Request Review",
text: props.model.review.html_url,
href: props.model.review.html_url,
text: review.html_url,
href: review.html_url,
},
{
heading: "Review Author",
text: props.model.review.user.login,
href: props.model.review.user.html_url,
text: review.user.login,
href: review.user.html_url,
},
{
heading: "Permalink",
text: permalink,
href: permalink
},
{
heading: "Slides Permalink",
text: `${permalink}/slides`,
href: `${permalink}/slides`,
}
];
});
</script>

0 comments on commit 2129102

Please sign in to comment.