|
18 | 18 | Text="{DynamicResource Text.DeleteBranch}"/> |
19 | 19 | </StackPanel> |
20 | 20 |
|
21 | | - <Grid Margin="0,16,8,0" RowDefinitions="32,Auto,Auto,Auto" ColumnDefinitions="120,*"> |
| 21 | + <Grid Margin="0,16,8,0" RowDefinitions="32,Auto,Auto,Auto,Auto" ColumnDefinitions="120,*"> |
22 | 22 | <TextBlock Grid.Row="0" Grid.Column="0" HorizontalAlignment="Right" Text="{DynamicResource Text.DeleteBranch.Branch}"/> |
23 | 23 | <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal"> |
24 | 24 | <Path Width="14" Height="14" Margin="8,0" Data="{StaticResource Icons.Branch}"/> |
|
36 | 36 | Text="{Binding Target.TrackStatusDescription}"/> |
37 | 37 | </Border> |
38 | 38 | </StackPanel> |
| 39 | + |
| 40 | + <CheckBox Grid.Row="1" Grid.Column="1" |
| 41 | + Height="32" |
| 42 | + IsChecked="{Binding DeleteUpstream, Mode=TwoWay}" |
| 43 | + IsVisible="{Binding Upstream, Mode=OneWay, Converter={x:Static ObjectConverters.IsNotNull}}"> |
| 44 | + <v:NameHighlightedTextBlock Foreground="{DynamicResource Brush.FG1}" |
| 45 | + Text="{Binding DeleteUpstreamTip, Mode=OneWay}" |
| 46 | + VerticalAlignment="Center"/> |
| 47 | + </CheckBox> |
39 | 48 |
|
40 | | - <Border Grid.Row="1" Grid.Column="1" |
41 | | - Height="32" |
42 | | - IsVisible="{Binding Target.IsLocal, Mode=OneWay}"> |
43 | | - <CheckBox Content="{DynamicResource Text.DeleteBranch.Force}" |
44 | | - IsChecked="{Binding Force, Mode=TwoWay}" |
45 | | - ToolTip.Tip="--force"/> |
46 | | - </Border> |
| 49 | + <CheckBox Grid.Row="2" Grid.Column="1" |
| 50 | + IsChecked="{Binding DeleteWorktree, Mode=TwoWay}" |
| 51 | + IsVisible="{Binding AttachedWorktree, Mode=OneWay, Converter={x:Static ObjectConverters.IsNotNull}}" |
| 52 | + Content="{DynamicResource Text.DeleteBranch.DeleteAttachedWorktree}"/> |
47 | 53 |
|
48 | | - <Border Grid.Row="2" Grid.Column="1" |
49 | | - Height="32" |
50 | | - IsVisible="{Binding Upstream, Mode=OneWay, Converter={x:Static ObjectConverters.IsNotNull}}"> |
51 | | - <CheckBox IsChecked="{Binding DeleteUpstream, Mode=TwoWay}"> |
52 | | - <v:NameHighlightedTextBlock Foreground="{DynamicResource Brush.FG1}" |
53 | | - Text="{Binding DeleteUpstreamTip, Mode=OneWay}" |
54 | | - VerticalAlignment="Center"/> |
55 | | - </CheckBox> |
56 | | - </Border> |
| 54 | + <CheckBox Grid.Row="3" Grid.Column="1" |
| 55 | + Height="32" |
| 56 | + Content="{DynamicResource Text.DeleteBranch.Force}" |
| 57 | + IsChecked="{Binding Force, Mode=TwoWay}" |
| 58 | + ToolTip.Tip="--force" |
| 59 | + IsVisible="{Binding Target.IsLocal, Mode=OneWay}"/> |
57 | 60 |
|
58 | | - <StackPanel Grid.Row="3" Grid.Column="1" |
| 61 | + <StackPanel Grid.Row="4" Grid.Column="1" |
59 | 62 | Height="32" |
60 | 63 | Orientation="Horizontal" |
61 | 64 | IsVisible="{Binding !Target.IsLocal, Mode=OneWay}"> |
|
0 commit comments