|
3 | 3 | import SectionCard from '$lib/components/SectionCard.svelte'; |
4 | 4 | import { gitHostUsePullRequestTemplate } from '$lib/config/config'; |
5 | 5 | import { getGitHubUserServiceStore } from '$lib/gitHost/github/githubUserService'; |
| 6 | + import Toggle from '$lib/shared/Toggle.svelte'; |
6 | 7 | import { UserService } from '$lib/stores/user'; |
7 | 8 | import { copyToClipboard } from '$lib/utils/clipboard'; |
8 | 9 | import { getContext } from '$lib/utils/context'; |
9 | 10 | import * as toasts from '$lib/utils/toasts'; |
10 | 11 | import { openExternalUrl } from '$lib/utils/url'; |
11 | 12 | import Button from '@gitbutler/ui/Button.svelte'; |
12 | | - import Checkbox from '@gitbutler/ui/Checkbox.svelte'; |
13 | 13 | import Icon from '@gitbutler/ui/Icon.svelte'; |
14 | 14 | import Modal from '@gitbutler/ui/Modal.svelte'; |
15 | 15 | import { fade } from 'svelte/transition'; |
|
96 | 96 | </div> |
97 | 97 | </svelte:fragment> |
98 | 98 | <svelte:fragment slot="title">GitHub</svelte:fragment> |
99 | | - <svelte:fragment slot="caption"> |
100 | | - Allows you to view and create Pull Requests from GitButler. |
101 | | - </svelte:fragment> |
| 99 | + <svelte:fragment slot="caption">Allows you to view and create Pull Requests.</svelte:fragment> |
102 | 100 | {#if $user?.github_access_token} |
103 | 101 | <Button style="ghost" outline {disabled} icon="bin-small" onclick={forgetGitHub} |
104 | 102 | >Forget</Button |
|
109 | 107 | </SectionCard> |
110 | 108 | <SectionCard roundedBottom={false} orientation="row" labelFor="use-pull-request-template"> |
111 | 109 | <svelte:fragment slot="title">Pull Request Template</svelte:fragment> |
112 | | - <svelte:fragment slot="caption"> |
113 | | - Use Pull Request template when creating a PR through GitButler. |
114 | | - </svelte:fragment> |
| 110 | + <svelte:fragment slot="caption" |
| 111 | + >Use Pull Request template when creating a Pull Requests.</svelte:fragment |
| 112 | + > |
115 | 113 | <svelte:fragment slot="actions"> |
116 | | - <Checkbox |
117 | | - name="use-pull-request-template" |
118 | | - value="false" |
119 | | - bind:checked={$usePullRequestTemplate} |
120 | | - /> |
| 114 | + <Toggle id="use-pull-request-template" value="false" bind:checked={$usePullRequestTemplate} /> |
121 | 115 | </svelte:fragment> |
122 | 116 | </SectionCard> |
123 | 117 | {/if} |
|
0 commit comments