Skip to content

Commit dd16b1c

Browse files
committed
Hides Share as Cloud Patch action in Inspect when there's no WIP changes
1 parent f101392 commit dd16b1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/webviews/apps/commitDetails/components/gl-wip-details.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ export class GlWipDetails extends GlDetailsBase {
208208
</p>`;
209209
}
210210

211+
if ((this.wip?.changes?.files.length ?? 0) === 0) return undefined;
212+
211213
return html`<p class="button-container">
212214
<span class="button-group button-group--single">
213215
<gl-button

0 commit comments

Comments
 (0)