Do not try rendering run actions in result rows
In result rows we are dealing with RunResult objects, which are a
combination of run and result. Those interfaces both have an `actions`
property, so it was not super clear which actions should be used in
the result row. We are now clearly focusing on just result actions and
ignoring all run actions.
Google-Bug-Id: b/196085675
Change-Id: I71045ec008df79af5a68a9b128aa63549310a93c
diff --git a/polygerrit-ui/app/elements/checks/gr-checks-results.ts b/polygerrit-ui/app/elements/checks/gr-checks-results.ts
index 245660d..4e521f0 100644
--- a/polygerrit-ui/app/elements/checks/gr-checks-results.ts
+++ b/polygerrit-ui/app/elements/checks/gr-checks-results.ts
@@ -46,7 +46,6 @@
iconForLink,
isCategory,
otherPrimaryLinks,
- primaryRunAction,
secondaryLinks,
tooltipForLink,
} from '../../services/checks/checks-util';
@@ -323,7 +322,6 @@
${this.result.checkName}
</div>
<div class="space"></div>
- ${this.renderPrimaryRunAction()}
</div>
</td>
<td class="summaryCol">
@@ -366,13 +364,6 @@
`;
}
- private renderPrimaryRunAction() {
- if (!this.result) return;
- const action = primaryRunAction(this.result);
- if (!action) return;
- return html`<gr-checks-action .action="${action}"></gr-checks-action>`;
- }
-
private renderExpanded() {
if (!this.isExpanded) return;
return html`<gr-result-expanded