Skip to content

Commit f9f44ae

Browse files
committed
ux: show Name of stash instead of SHA in Apply Stash and Drop Stash popup
Signed-off-by: leo <[email protected]>
1 parent c67e8e3 commit f9f44ae

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/Views/ApplyStash.axaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
44
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
55
xmlns:vm="using:SourceGit.ViewModels"
6-
xmlns:c="using:SourceGit.Converters"
76
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
87
x:Class="SourceGit.Views.ApplyStash"
98
x:DataType="vm:ApplyStash">
@@ -21,8 +20,8 @@
2120
HorizontalAlignment="Left" VerticalAlignment="Center"
2221
Data="{StaticResource Icons.Stashes}"/>
2322

24-
<TextBlock VerticalAlignment="Center" Classes="primary" Text="{Binding Stash.SHA, Converter={x:Static c:StringConverters.ToShortSHA}}" Foreground="DarkOrange"/>
25-
<TextBlock VerticalAlignment="Center" Text="{Binding Stash.Message}" Margin="8,0,0,0"/>
23+
<TextBlock VerticalAlignment="Center" Classes="primary" Text="{Binding Stash.Name}" Foreground="DarkOrange"/>
24+
<TextBlock VerticalAlignment="Center" Text="{Binding Stash.Message}" Margin="4,0,0,0"/>
2625
</StackPanel>
2726

2827
<CheckBox Grid.Row="1" Grid.Column="1"

src/Views/DropStash.axaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
44
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
55
xmlns:vm="using:SourceGit.ViewModels"
6-
xmlns:c="using:SourceGit.Converters"
76
mc:Ignorable="d" d:DesignWidth="500" d:DesignHeight="450"
87
x:Class="SourceGit.Views.DropStash"
98
x:DataType="vm:DropStash">
@@ -21,8 +20,8 @@
2120
HorizontalAlignment="Left" VerticalAlignment="Center"
2221
Data="{StaticResource Icons.Stashes}"/>
2322

24-
<TextBlock VerticalAlignment="Center" Classes="primary" Text="{Binding Stash.SHA, Converter={x:Static c:StringConverters.ToShortSHA}}" Foreground="DarkOrange"/>
25-
<TextBlock VerticalAlignment="Center" Text="{Binding Stash.Message}" Margin="8,0,0,0"/>
23+
<TextBlock VerticalAlignment="Center" Classes="primary" Text="{Binding Stash.Name}" Foreground="DarkOrange"/>
24+
<TextBlock VerticalAlignment="Center" Text="{Binding Stash.Message}" Margin="4,0,0,0"/>
2625
</StackPanel>
2726
</Grid>
2827
</StackPanel>

0 commit comments

Comments
 (0)