Skip to content

Commit

Permalink
Adds launchpad status in branch card (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
d13 committed Dec 18, 2024
1 parent 70ea70f commit 69b6395
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/webviews/apps/plus/home/components/branch-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,15 +413,21 @@ export abstract class GlBranchCardBase extends GlElement {
<span class="branch-item__identifier">#${this.branch.pr.id}</span>
</p>
</div>
${this.renderLaunchpad()}
</gl-work-item>
`;
}

// ${this.branch.pr.launchpad != null
// ? html`<p>
// <span class="branch-item__category">${this.branch.pr.launchpad.category}</span>
// </p>`
// : nothing}
protected renderLaunchpad() {
const launchpad = this.branch.pr?.launchpad;
if (launchpad == null) return nothing;

return html`<div class="branch-item__section branch-item__section--details" slot="context">
<p>
<span class="branch-item__category">${launchpad.category}</span>
</p>
</div>`;
}

protected renderMergeTargetStatus() {
if (!this.branch.mergeTarget) return nothing;
Expand Down

0 comments on commit 69b6395

Please sign in to comment.