|
14 | 14 | <BitmapImage x:Key="OpenRepoImage" UriSource="../../Resources/folder-horizontal-open.png" />
|
15 | 15 | <BitmapImage x:Key="CreateRepoImage" UriSource="../../Resources/init-repo.png" />
|
16 | 16 | <BitmapImage x:Key="CloneRepoImage" UriSource="../../Resources/drive-download.png" />
|
17 |
| - <BitmapImage x:Key="CreateNewRemoteRepoImage" UriSource="../../Resources/drive-upload.png" /> |
| 17 | + <BitmapImage x:Key="PublishRepoImage" UriSource="../../Resources/drive-upload.png" /> |
18 | 18 | <BitmapImage x:Key="GitIcon" UriSource="../../Resources/icon-github.png" />
|
19 | 19 | <BitmapImage x:Key="ErrorImage" UriSource="../../Resources/cross-circle.png" />
|
20 | 20 | <BitmapImage x:Key="WarningIcon" UriSource="../../Resources/exclamation-white.png" />
|
|
247 | 247 | Background="Transparent">
|
248 | 248 | <Image Source="{StaticResource CloneRepoImage}" />
|
249 | 249 | </Button>
|
250 |
| - <Button ToolTip="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=SourceControl_CreateNewRemoteRepoButtonToolTip}" |
251 |
| - Command="{Binding CreateNewRemoteRepoCommand, Mode=OneWay}" |
| 250 | + <Button ToolTip="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=SourceControl_PublishRepoButtonToolTip}" |
| 251 | + Command="{Binding PublishRepoCommand, Mode=OneWay}" |
252 | 252 | BorderThickness="0"
|
253 |
| - Background="Transparent"> |
254 |
| - <Image Source="{StaticResource CreateNewRemoteRepoImage}" /> |
| 253 | + Background="Transparent" |
| 254 | + Visibility="{Binding RepoDoesNotHaveRemoteLocation, Converter={StaticResource BoolToVisibility}}"> |
| 255 | + <Image Source="{StaticResource PublishRepoImage}" /> |
255 | 256 | </Button>
|
256 | 257 | <Separator />
|
257 | 258 | <StackPanel Orientation="Horizontal">
|
|
413 | 414 | </StackPanel>
|
414 | 415 | </Grid>
|
415 | 416 |
|
416 |
| - <Grid Visibility="{Binding DisplayCreateNewRemoteRepoGrid, Converter={StaticResource BoolToVisibility}}" |
| 417 | + <Grid Visibility="{Binding DisplayPublishRepoGrid, Converter={StaticResource BoolToVisibility}}" |
417 | 418 | DockPanel.Dock="Top">
|
418 | 419 | <StackPanel VerticalAlignment="Top"
|
419 | 420 | Margin="10,5">
|
420 | 421 | <TextBlock Text="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=SourceControl_RemotePathLabel}"
|
421 | 422 | FontWeight="SemiBold"
|
422 | 423 | Margin="0,0,0,5" />
|
423 |
| - <TextBox Text="{Binding CreateNewRemoteRemotePath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" |
| 424 | + <TextBox Text="{Binding PublishRemotePath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" |
424 | 425 | Margin="0,0,0,10"
|
425 | 426 | Height="18"
|
426 | 427 | VerticalContentAlignment="Center" />
|
427 | 428 | <Image Source="{StaticResource ErrorImage}"
|
428 | 429 | HorizontalAlignment="Right"
|
429 | 430 | Margin="0,-57,-7.8,0"
|
430 | 431 | Width="16"
|
431 |
| - Visibility="{Binding IsNotValidCreateNewRemoteRemotePath, Converter={StaticResource BoolToVisibility}}" /> |
432 |
| - |
433 |
| - <TextBlock Text="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=SourceControl_BranchName}" |
434 |
| - FontWeight="SemiBold" |
435 |
| - Margin="0,0,0,5" /> |
436 |
| - <TextBox Text="{Binding RemoteBranchName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" |
437 |
| - Margin="0,0,0,10" |
438 |
| - Height="18" |
439 |
| - VerticalContentAlignment="Center" /> |
| 432 | + Visibility="{Binding IsNotValidPublishRemotePath, Converter={StaticResource BoolToVisibility}}" /> |
440 | 433 | <Image Source="{StaticResource ErrorImage}"
|
441 | 434 | HorizontalAlignment="Right"
|
442 | 435 | Margin="0,-57,-7.8,0"
|
|
450 | 443 | </Grid.ColumnDefinitions>
|
451 | 444 | <Button Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=OK}"
|
452 | 445 | Padding="5"
|
453 |
| - Command="{Binding CreateNewRemoteRepoOkButtonCommand}"> |
| 446 | + Command="{Binding PublishRepoOkButtonCommand}"> |
454 | 447 | </Button>
|
455 | 448 | <Button Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=CancelButtonText}"
|
456 | 449 | Grid.Column="1"
|
457 | 450 | Margin="10,0,0,0"
|
458 | 451 | Padding="5"
|
459 |
| - Command="{Binding CreateNewRemoteRepoCancelButtonCommand}"> |
| 452 | + Command="{Binding PublishRepoCancelButtonCommand}"> |
460 | 453 | </Button>
|
461 | 454 | </Grid>
|
462 | 455 | </StackPanel>
|
|
0 commit comments