Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 2fd2f9a

Browse files
committed
Stub out submodule UI
1 parent 17db3fd commit 2fd2f9a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/GitHub.VisualStudio/Views/GitHubPane/PullRequestDetailView.xaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@
155155
<Rectangle Grid.Column="1" Margin="5" Width="1" Height="12" VerticalAlignment="Top" Style="{DynamicResource Separator}" />
156156

157157
<!-- Checkout pull request button -->
158+
<!--
158159
<ui:GitHubActionLink Command="{Binding Checkout}"
159160
Content="{Binding CheckoutState.Caption}"
160161
Grid.Column="2"
@@ -163,10 +164,14 @@
163164
Visibility="{Binding CheckoutState, Converter={ui:NullToVisibilityConverter}}"
164165
ToolTip="{Binding CheckoutState.ToolTip}"
165166
ToolTipService.ShowOnDisabled="True"/>
167+
-->
166168

167169
<!-- Pull/push buttons -->
170+
<StackPanel Grid.Column="2" Orientation="Horizontal" VerticalAlignment="Center">
171+
<!--
168172
<StackPanel Grid.Column="2" Orientation="Horizontal" VerticalAlignment="Center"
169173
Visibility="{Binding UpdateState.UpToDate, FallbackValue=Collapsed, Converter={ui:BooleanToInverseVisibilityConverter}}">
174+
-->
170175
<ui:OcticonImage Icon="arrow_down"/>
171176
<TextBlock Text="{Binding UpdateState.CommitsBehind}" VerticalAlignment="Center"/>
172177
<ui:GitHubActionLink Content="Pull"
@@ -176,19 +181,37 @@
176181
ToolTipService.ShowOnDisabled="True"
177182
VerticalAlignment="Center"/>
178183
<ui:OcticonImage Icon="arrow_up"/>
184+
<TextBlock Text="5" VerticalAlignment="Center"/>
185+
<!--
179186
<TextBlock Text="{Binding UpdateState.CommitsAhead}" VerticalAlignment="Center"/>
187+
-->
180188
<ui:GitHubActionLink Content="Push"
181189
Command="{Binding Push}"
182190
Margin="4,0"
183191
ToolTip="{Binding UpdateState.PushToolTip}"
184192
ToolTipService.ShowOnDisabled="True"
185193
VerticalAlignment="Center"/>
186194
<!-- Sync submodules -->
195+
<ui:OcticonImage Icon="package"/>
196+
<TextBlock Text="4" Margin="4 0 0 0" VerticalAlignment="Center"/>
197+
<!--
187198
<TextBlock Text="{Binding UpdateState.SubmodulesToSync}" VerticalAlignment="Center"/>
199+
-->
200+
<ui:GitHubActionLink Content="Sync"
201+
Command="{Binding SyncSubmodules}"
202+
Margin="4 0" />
203+
<!--
204+
<ui:GitHubActionLink Content="Sync"
205+
Command="{Binding SyncSubmodules}"
206+
Margin="4 0"
207+
Visibility="{Binding UpdateState.SyncSubmodulesEnabled, FallbackValue=Collapsed, Converter={ui:BooleanToVisibilityConverter}}" />
208+
-->
209+
<!--
188210
<ui:GitHubActionLink Content="Sync"
189211
Command="{Binding SyncSubmodules}"
190212
Margin="4 0"
191213
Visibility="{Binding UpdateState.SyncSubmodulesEnabled, FallbackValue=Collapsed, Converter={ui:BooleanToVisibilityConverter}}" />
214+
-->
192215
</StackPanel>
193216

194217
<!-- Branch checked out and up-to-date -->

0 commit comments

Comments
 (0)