mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-29 16:14:59 +00:00
Show only my locks (#515)
* Added a checkbox in the LFSLocks window to only show the ones locked by "Mat" * Waits for the locks list to finish loading before making the checkbox clickable * Now uses correct username for lock filtering. WIP: needs an error popup if user is misconfigured * Added an error popup if username is empty on lfs locks * Replaced an IEnumerable with a AvaloniaList for consistency
This commit is contained in:
parent
4a08caddad
commit
21498f7009
2 changed files with 48 additions and 7 deletions
|
@ -13,7 +13,7 @@
|
|||
Title="{DynamicResource Text.GitLFS.Locks.Title}"
|
||||
Width="600" Height="400"
|
||||
WindowStartupLocation="CenterOwner">
|
||||
<Grid RowDefinitions="Auto,*">
|
||||
<Grid RowDefinitions="Auto,Auto,*">
|
||||
<!-- TitleBar -->
|
||||
<Grid Grid.Row="0" ColumnDefinitions="Auto,*,Auto" Height="30" IsVisible="{Binding !#ThisControl.UseSystemWindowFrame}">
|
||||
<Border Grid.Column="0" Grid.ColumnSpan="3"
|
||||
|
@ -43,11 +43,20 @@
|
|||
IsVisible="{OnPlatform True, macOS=False}"/>
|
||||
</Grid>
|
||||
|
||||
<!-- Filter and Unlock All -->
|
||||
<Grid Grid.Row="1" ColumnDefinitions="Auto,*,Auto" Margin="8,0,0,0">
|
||||
<CheckBox Grid.Column="0"
|
||||
Content="Show only my locks"
|
||||
IsChecked="{Binding ShowOnlyMyLocks}"
|
||||
IsEnabled="{Binding !IsLoading}"
|
||||
VerticalAlignment="Center" />
|
||||
</Grid>
|
||||
|
||||
<!-- Locked Files -->
|
||||
<Grid Grid.Row="1">
|
||||
<ListBox Margin="8"
|
||||
<Grid Grid.Row="2">
|
||||
<ListBox Margin="8,0,8,8"
|
||||
Background="{DynamicResource Brush.Contents}"
|
||||
ItemsSource="{Binding Locks}"
|
||||
ItemsSource="{Binding FilteredLocks}"
|
||||
SelectionMode="Single"
|
||||
BorderThickness="1"
|
||||
BorderBrush="{DynamicResource Brush.Border2}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue