@@ -8,11 +8,12 @@ import { render } from 'react-dom';
88import { RemoteInfo } from '../../common/types' ;
99import { CreateParamsNew } from '../../common/views' ;
1010import { isITeam , MergeMethod } from '../../src/github/interface' ;
11+ import { ChangeTemplateReply } from '../../src/github/views' ;
1112import PullRequestContextNew from '../common/createContextNew' ;
1213import { ErrorBoundary } from '../common/errorBoundary' ;
1314import { LabelCreate } from '../common/label' ;
1415import { ContextDropdown } from '../components/contextDropdown' ;
15- import { accountIcon , editIcon , feedbackIcon , gitCompareIcon , milestoneIcon , prMergeIcon , projectIcon , sparkleIcon , stopCircleIcon , tagIcon } from '../components/icon' ;
16+ import { accountIcon , feedbackIcon , gitCompareIcon , milestoneIcon , notebookTemplate , prMergeIcon , projectIcon , sparkleIcon , stopCircleIcon , tagIcon } from '../components/icon' ;
1617import { Avatar } from '../components/user' ;
1718
1819type CreateMethod = 'create-draft' | 'create' | 'create-automerge-squash' | 'create-automerge-rebase' | 'create-automerge-merge' ;
@@ -179,7 +180,7 @@ export function main() {
179180 }
180181
181182 async function changeTemplate ( ) {
182- const result = await ctx . postMessage ( { command : 'pr.changeTemplate' } ) ;
183+ const result : ChangeTemplateReply = await ctx . postMessage ( { command : 'pr.changeTemplate' } ) ;
183184 if ( result && result . description ) {
184185 ctx . updateState ( { pendingDescription : result . description } ) ;
185186 }
@@ -332,10 +333,10 @@ export function main() {
332333 : null }
333334 </ div >
334335
335- < div className = 'group -title' >
336+ < div className = 'description -title' >
336337 < label htmlFor = 'description' className = 'input-title' > Description</ label >
337338 { ctx . createParams . usingTemplate ?
338- < a title = 'Change template' className = { `title-action icon-button${ isBusy || ! ctx . initialized ? ' disabled' : '' } ` } onClick = { ( ) => changeTemplate ( ) } tabIndex = { 0 } > { editIcon } </ a > : null }
339+ < a title = 'Change template' className = { `title-action icon-button${ isBusy || ! ctx . initialized ? ' disabled' : '' } ` } onClick = { ( ) => changeTemplate ( ) } tabIndex = { 0 } > { notebookTemplate } </ a > : null }
339340 </ div >
340341 < div className = 'group-description' >
341342 < textarea
0 commit comments