mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-25 10:33:21 +03:00
More PR details follow-ups (#5073)
- Add a dedicated 'open PR in browser' button - Fix the description generation in the modal
This commit is contained in:
parent
e28a4b697c
commit
857cf7816c
@ -236,12 +236,12 @@
|
||||
commitMessages: commits.map((c) => c.description),
|
||||
prBodyTemplate: pullRequestTemplateBody,
|
||||
userToken: $user.access_token,
|
||||
onToken: (t) => {
|
||||
onToken: async (t) => {
|
||||
if (firstToken) {
|
||||
inputBody = '';
|
||||
firstToken = false;
|
||||
}
|
||||
inputBody += t;
|
||||
inputBody = '';
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -203,16 +203,21 @@
|
||||
style="ghost"
|
||||
outline
|
||||
icon="description-small"
|
||||
onclick={(e: MouseEvent) => {
|
||||
if (e.ctrlKey || e.metaKey) {
|
||||
openExternalUrl($pr.htmlUrl);
|
||||
return;
|
||||
}
|
||||
onclick={() => {
|
||||
prDetailsModal?.show();
|
||||
}}
|
||||
>
|
||||
PR details
|
||||
</Button>
|
||||
<Button
|
||||
icon="open-link"
|
||||
size="tag"
|
||||
style="ghost"
|
||||
outline
|
||||
onclick={() => {
|
||||
openExternalUrl($pr.htmlUrl);
|
||||
}}
|
||||
/>
|
||||
<Button
|
||||
icon="update-small"
|
||||
size="tag"
|
||||
|
@ -206,16 +206,21 @@
|
||||
style="ghost"
|
||||
outline
|
||||
icon="description-small"
|
||||
onclick={(e: MouseEvent) => {
|
||||
if (e.ctrlKey || e.metaKey) {
|
||||
openExternalUrl(pr.htmlUrl);
|
||||
return;
|
||||
}
|
||||
onclick={() => {
|
||||
prDetailsModal?.show();
|
||||
}}
|
||||
>
|
||||
PR details
|
||||
</Button>
|
||||
<Button
|
||||
icon="open-link"
|
||||
size="tag"
|
||||
style="ghost"
|
||||
outline
|
||||
onclick={() => {
|
||||
openExternalUrl(pr.htmlUrl);
|
||||
}}
|
||||
/>
|
||||
<Button
|
||||
icon="update-small"
|
||||
size="tag"
|
||||
|
Loading…
Reference in New Issue
Block a user