|
5 | 5 | xmlns:m="using:SourceGit.Models"
|
6 | 6 | xmlns:vm="using:SourceGit.ViewModels"
|
7 | 7 | xmlns:v="using:SourceGit.Views"
|
8 |
| - xmlns:sys="clr-namespace:System;assembly=mscorlib" |
9 | 8 | mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
10 | 9 | x:Class="SourceGit.Views.SelfUpdate"
|
11 | 10 | x:DataType="vm:SelfUpdate"
|
|
87 | 86 | </StackPanel>
|
88 | 87 | </DataTemplate>
|
89 | 88 |
|
90 |
| - <DataTemplate DataType="sys:Exception"> |
| 89 | + <DataTemplate DataType="m:AlreadyUpToDate"> |
91 | 90 | <StackPanel Orientation="Vertical" Margin="16,8">
|
92 |
| - <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> |
93 |
| - <Path Width="14" Height="14" Data="{StaticResource Icons.Error}" Fill="Red"/> |
94 |
| - <TextBlock Margin="8,0,0,0" FontWeight="Bold" FontSize="14" Text="{DynamicResource Text.SelfUpdate.Error}"/> |
| 91 | + <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,8"> |
| 92 | + <Path Width="14" Height="14" Data="{StaticResource Icons.Info}" Fill="Green"/> |
| 93 | + <TextBlock Margin="8,0,0,0" Text="{DynamicResource Text.SelfUpdate.UpToDate}"/> |
95 | 94 | </StackPanel>
|
96 | 95 |
|
97 |
| - <TextBlock Text="{Binding Message}" MaxWidth="500" TextWrapping="Wrap" Margin="0,8"/> |
98 |
| - |
99 | 96 | <Button Classes="flat primary"
|
100 | 97 | Height="30"
|
101 | 98 | Margin="4,0"
|
|
107 | 104 | </StackPanel>
|
108 | 105 | </DataTemplate>
|
109 | 106 |
|
110 |
| - <DataTemplate DataType="m:AlreadyUpToDate"> |
| 107 | + <DataTemplate DataType="m:SelfUpdateFailed"> |
111 | 108 | <StackPanel Orientation="Vertical" Margin="16,8">
|
112 |
| - <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,8"> |
113 |
| - <Path Width="14" Height="14" Data="{StaticResource Icons.Info}" Fill="Green"/> |
114 |
| - <TextBlock Margin="8,0,0,0" Text="{DynamicResource Text.SelfUpdate.UpToDate}"/> |
| 109 | + <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> |
| 110 | + <Path Width="14" Height="14" Data="{StaticResource Icons.Error}" Fill="Red"/> |
| 111 | + <TextBlock Margin="8,0,0,0" FontWeight="Bold" FontSize="14" Text="{DynamicResource Text.SelfUpdate.Error}"/> |
115 | 112 | </StackPanel>
|
116 | 113 |
|
| 114 | + <TextBlock Text="{Binding Reason}" MaxWidth="500" TextWrapping="Wrap" Margin="0,8"/> |
| 115 | + |
117 | 116 | <Button Classes="flat primary"
|
118 | 117 | Height="30"
|
119 | 118 | Margin="4,0"
|
|
0 commit comments