@@ -7,23 +7,23 @@ import { Dialog, DialogContent, DialogFooter } from '../dialog'
77import { Ref } from '../lib/ref'
88import { OkCancelButtonGroup } from '../dialog/ok-cancel-button-group'
99
10- interface IDeleteAllLocalBranchesProps {
10+ interface IDeleteUnusedLocalBranchesProps {
1111 readonly dispatcher : Dispatcher
1212 readonly repository : Repository
1313 readonly branches : ReadonlyArray < Branch >
1414 readonly onDismissed : ( ) => void
1515 readonly onDeleted : ( repository : Repository ) => void
1616}
1717
18- interface IDeleteAllLocalBranchesState {
18+ interface IDeleteUnusedLocalBranchesState {
1919 readonly isDeleting : boolean
2020}
2121
22- export class DeleteAllLocalBranches extends React . Component <
23- IDeleteAllLocalBranchesProps ,
24- IDeleteAllLocalBranchesState
22+ export class DeleteUnusedLocalBranches extends React . Component <
23+ IDeleteUnusedLocalBranchesProps ,
24+ IDeleteUnusedLocalBranchesState
2525> {
26- public constructor ( props : IDeleteAllLocalBranchesProps ) {
26+ public constructor ( props : IDeleteUnusedLocalBranchesProps ) {
2727 super ( props )
2828
2929 this . state = {
@@ -36,25 +36,27 @@ export class DeleteAllLocalBranches extends React.Component<
3636
3737 return (
3838 < Dialog
39- id = "delete-all -local-branches"
39+ id = "delete-unused -local-branches"
4040 title = {
41- __DARWIN__ ? 'Delete All Local Branches' : 'Delete all local branches'
41+ __DARWIN__
42+ ? 'Delete Unused Local Branches'
43+ : 'Delete unused local branches'
4244 }
4345 type = "warning"
4446 onSubmit = { this . deleteBranches }
4547 onDismissed = { this . props . onDismissed }
4648 disabled = { this . state . isDeleting }
4749 loading = { this . state . isDeleting }
4850 role = "alertdialog"
49- ariaDescribedBy = "delete-all -local-branches-message"
51+ ariaDescribedBy = "delete-unused -local-branches-message"
5052 >
5153 < DialogContent >
52- < div id = "delete-all -local-branches-message" >
54+ < div id = "delete-unused -local-branches-message" >
5355 < p >
5456 Delete the following { count } { ' ' }
5557 { count === 1 ? 'local branch' : 'local branches' } ?
5658 </ p >
57- < ul className = "delete-all -local-branches-list" >
59+ < ul className = "delete-unused -local-branches-list" >
5860 { this . props . branches . map ( branch => (
5961 < li key = { branch . name } >
6062 < Ref > { branch . name } </ Ref >
0 commit comments