Skip to content

Commit e00aa64

Browse files
authored
Merge pull request #1781 from Hosch250/next
Publish repo tweaks
2 parents c467e97 + 3703083 commit e00aa64

File tree

8 files changed

+131
-217
lines changed

8 files changed

+131
-217
lines changed

RetailCoder.VBE/UI/RubberduckUI.Designer.cs

Lines changed: 27 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

RetailCoder.VBE/UI/RubberduckUI.resx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1620,13 +1620,13 @@ All our stargazers, likers & followers, for the warm fuzzies
16201620
<data name="GeneralSettings_ShowLogFolder" xml:space="preserve">
16211621
<value>Show Log Folder</value>
16221622
</data>
1623-
<data name="SourceControl_CreateNewRemoteRepoButtonToolTip" xml:space="preserve">
1624-
<value>Upload repository to GitHub</value>
1623+
<data name="SourceControl_PublishRepoButtonToolTip" xml:space="preserve">
1624+
<value>Publish repository to GitHub</value>
16251625
</data>
1626-
<data name="SourceControl_CreateNewRemoteRepo_FailureTitle" xml:space="preserve">
1627-
<value>Create new remote repository.</value>
1626+
<data name="SourceControl_PublishRepo_FailureTitle" xml:space="preserve">
1627+
<value>Publish repository.</value>
16281628
</data>
1629-
<data name="SourceControl_CreateNewRemoteRepo_NoOpenRepo" xml:space="preserve">
1629+
<data name="SourceControl_PublishRepo_NoOpenRepo" xml:space="preserve">
16301630
<value>No open repository to push to specified remote location.</value>
16311631
</data>
16321632
<data name="SourceControl_ExternalModifications" xml:space="preserve">

RetailCoder.VBE/UI/SourceControl/SourceControlView.xaml

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<BitmapImage x:Key="OpenRepoImage" UriSource="../../Resources/folder-horizontal-open.png" />
1515
<BitmapImage x:Key="CreateRepoImage" UriSource="../../Resources/init-repo.png" />
1616
<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" />
1818
<BitmapImage x:Key="GitIcon" UriSource="../../Resources/icon-github.png" />
1919
<BitmapImage x:Key="ErrorImage" UriSource="../../Resources/cross-circle.png" />
2020
<BitmapImage x:Key="WarningIcon" UriSource="../../Resources/exclamation-white.png" />
@@ -247,11 +247,12 @@
247247
Background="Transparent">
248248
<Image Source="{StaticResource CloneRepoImage}" />
249249
</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}"
252252
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}" />
255256
</Button>
256257
<Separator />
257258
<StackPanel Orientation="Horizontal">
@@ -413,30 +414,22 @@
413414
</StackPanel>
414415
</Grid>
415416

416-
<Grid Visibility="{Binding DisplayCreateNewRemoteRepoGrid, Converter={StaticResource BoolToVisibility}}"
417+
<Grid Visibility="{Binding DisplayPublishRepoGrid, Converter={StaticResource BoolToVisibility}}"
417418
DockPanel.Dock="Top">
418419
<StackPanel VerticalAlignment="Top"
419420
Margin="10,5">
420421
<TextBlock Text="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=SourceControl_RemotePathLabel}"
421422
FontWeight="SemiBold"
422423
Margin="0,0,0,5" />
423-
<TextBox Text="{Binding CreateNewRemoteRemotePath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
424+
<TextBox Text="{Binding PublishRemotePath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
424425
Margin="0,0,0,10"
425426
Height="18"
426427
VerticalContentAlignment="Center" />
427428
<Image Source="{StaticResource ErrorImage}"
428429
HorizontalAlignment="Right"
429430
Margin="0,-57,-7.8,0"
430431
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}}" />
440433
<Image Source="{StaticResource ErrorImage}"
441434
HorizontalAlignment="Right"
442435
Margin="0,-57,-7.8,0"
@@ -450,13 +443,13 @@
450443
</Grid.ColumnDefinitions>
451444
<Button Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=OK}"
452445
Padding="5"
453-
Command="{Binding CreateNewRemoteRepoOkButtonCommand}">
446+
Command="{Binding PublishRepoOkButtonCommand}">
454447
</Button>
455448
<Button Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=CancelButtonText}"
456449
Grid.Column="1"
457450
Margin="10,0,0,0"
458451
Padding="5"
459-
Command="{Binding CreateNewRemoteRepoCancelButtonCommand}">
452+
Command="{Binding PublishRepoCancelButtonCommand}">
460453
</Button>
461454
</Grid>
462455
</StackPanel>

0 commit comments

Comments
 (0)