41 lines
2.6 KiB
XML
41 lines
2.6 KiB
XML
<UserControl xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:u="https://irihi.tech/ursa"
|
|
xmlns:vm="using:Flawless.Client.ViewModels"
|
|
x:DataType="vm:RepositoryViewModel"
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
x:Class="Flawless.Client.Views.RepositoryPage.RepoWorkspacePageView">
|
|
<Grid ColumnDefinitions="3*, 10, 2*" RowDefinitions="Auto, *">
|
|
<StackPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Spacing="8" Margin="6" Orientation="Horizontal">
|
|
<u:IconButton Icon="{StaticResource SemiIconRefresh}" Content="Detect"
|
|
Command="{Binding DetectLocalChangesAsyncCommand}"/>
|
|
<u:IconButton Icon="{StaticResource SemiIconCheckList}" Content="All"
|
|
Command="{Binding SelectAllChangesCommand}"/>
|
|
<u:IconButton Icon="{StaticResource SemiIconList}" Content="None"
|
|
Command="{Binding DeselectAllChangesCommand}"/>
|
|
<u:IconButton Icon="{StaticResource SemiIconExternalOpen}" Content="Open Folder"
|
|
Command="{Binding OpenFolderCommand}"/>
|
|
</StackPanel>
|
|
<TreeDataGrid Grid.Row="1" Grid.Column="0" Source="{Binding LocalChange}" CanUserSortColumns="True"/>
|
|
<Border Grid.Row="1" Grid.Column="2" Classes="Shadow" Theme="{StaticResource CardBorder}">
|
|
<StackPanel Spacing="8">
|
|
<StackPanel Orientation="Horizontal" Spacing="4" HorizontalAlignment="Stretch">
|
|
<u:IconButton
|
|
Icon="{StaticResource SemiIconDownload}" Content="Pull" HorizontalAlignment="Stretch"
|
|
Command="{Binding PullLatestRepositoryCommand}"/>
|
|
<u:IconButton
|
|
Icon="{StaticResource SemiIconBackward}" Content="Revert" HorizontalAlignment="Stretch"
|
|
Command="{Binding RevertSelectedChangesCommand}"/>
|
|
</StackPanel>
|
|
<u:Divider/>
|
|
<TextBox Text="{Binding LocalDatabase.CommitMessage}"
|
|
Classes="TextArea" MaxHeight="300" Watermark="Description of this commit"/>
|
|
<u:IconButton Content="Commit" Icon="{StaticResource SemiIconUpload}" HorizontalAlignment="Stretch"
|
|
Command="{Binding CommitSelectedChangesCommand}"/>
|
|
</StackPanel>
|
|
</Border>
|
|
</Grid>
|
|
</UserControl>
|