Skip to content

Commit 7c0f280

Browse files
committed
ux: tooltip for local branch without upstream (#1774)
Signed-off-by: leo <[email protected]>
1 parent 64295a9 commit 7c0f280

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Views/BranchTree.axaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,12 @@
5757
<StackPanel Grid.Row="0" Grid.Column="1"
5858
Margin="8,0,0,0"
5959
Orientation="Horizontal">
60-
<TextBlock Text="{Binding Upstream, Mode=OneWay, Converter={x:Static c:StringConverters.ToFriendlyUpstream}}"/>
60+
<TextBlock Text="{Binding Upstream, Mode=OneWay, Converter={x:Static c:StringConverters.ToFriendlyUpstream}}"
61+
IsVisible="{Binding Upstream, Mode=OneWay, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"/>
62+
<TextBlock IsVisible="{Binding Upstream, Mode=OneWay, Converter={x:Static StringConverters.IsNullOrEmpty}}">
63+
<Run Text="---"/>
64+
<Run Text="(none)" Foreground="{DynamicResource Brush.FG2}"/>
65+
</TextBlock>
6166

6267
<Border Background="OrangeRed" Margin="4,0,0,0" CornerRadius="4" VerticalAlignment="Center" IsVisible="{Binding IsUpstreamGone}">
6368
<TextBlock Text="{DynamicResource Text.BranchTree.InvalidUpstream}" FontSize="12" Classes="primary" Margin="4,1" Foreground="White" VerticalAlignment="Center"/>

0 commit comments

Comments
 (0)