|
|
@ -107,7 +107,12 @@ export class CommitDetailsApp extends App { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
this.sendCommand(CommitActionsCommandType, undefined); |
|
|
|
if (e.altKey) { |
|
|
|
this.sendCommand(CommitActionsCommandType, undefined); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
void navigator.clipboard.writeText(this.state.selected.sha); |
|
|
|
} |
|
|
|
|
|
|
|
protected override onMessageReceived(e: MessageEvent) { |
|
|
@ -163,6 +168,7 @@ export class CommitDetailsApp extends App { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
this.renderSha(); |
|
|
|
this.renderMessage(); |
|
|
|
this.renderAuthor(); |
|
|
|
this.renderStats(); |
|
|
@ -174,6 +180,17 @@ export class CommitDetailsApp extends App { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
renderSha() { |
|
|
|
const $els = [...document.querySelectorAll<HTMLElement>('[data-region="shortsha"]')]; |
|
|
|
if ($els.length === 0) { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
$els.forEach($el => { |
|
|
|
$el.textContent = this.state.selected.shortSha; |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
renderChoices() { |
|
|
|
// <nav class="commit-detail-panel__nav" aria-label="list of selected commits" data-region="choices">
|
|
|
|
// <p class="commit-detail-panel__commit-count">
|
|
|
|