зеркало из https://github.com/github/VisualStudio.git
Only show sign in with browser for github.com
This commit is contained in:
Родитель
a37ed486b8
Коммит
43dbfdc4d6
|
@ -85,32 +85,39 @@
|
|||
<StackPanel x:Name="dotComloginControlsPanel">
|
||||
|
||||
<StackPanel Style="{StaticResource FormFieldStackPanel}">
|
||||
<ghfvs:PromptTextBox
|
||||
x:Name="dotComUserNameOrEmail"
|
||||
PromptText="{x:Static ghfvs:Resources.UserNameOrEmailPromptText}"
|
||||
Margin="0,0,0,10" AutomationProperties.AutomationId="{x:Static ghfvs:AutomationIDs.DotcomUsernameEmailTextBox}" />
|
||||
<!--
|
||||
Signing with with username/password is going away, see:
|
||||
https://developer.github.com/changes/2020-02-14-deprecating-oauth-auth-endpoint/
|
||||
Setting Visibility="Collapsed"
|
||||
-->
|
||||
<StackPanel Name="dotComUsernamePasswordPanel" Visibility="Collapsed">
|
||||
<ghfvs:PromptTextBox
|
||||
x:Name="dotComUserNameOrEmail"
|
||||
PromptText="{x:Static ghfvs:Resources.UserNameOrEmailPromptText}"
|
||||
Margin="0,0,0,10" AutomationProperties.AutomationId="{x:Static ghfvs:AutomationIDs.DotcomUsernameEmailTextBox}" />
|
||||
|
||||
<ghfvs:SecurePasswordBox x:Name="dotComPassword" PromptText="{x:Static ghfvs:Resources.PasswordPrompt}" AutomationProperties.AutomationId="{x:Static ghfvs:AutomationIDs.DotcomPasswordTextBox}"/>
|
||||
<ghfvs:SecurePasswordBox x:Name="dotComPassword" PromptText="{x:Static ghfvs:Resources.PasswordPrompt}" AutomationProperties.AutomationId="{x:Static ghfvs:AutomationIDs.DotcomPasswordTextBox}"/>
|
||||
|
||||
<Border Style="{StaticResource LoginButtonBorder}" Margin="0 16 0 0">
|
||||
<Button
|
||||
x:Name="dotComLogInButton"
|
||||
Content="{x:Static ghfvs:Resources.LoginLink}"
|
||||
IsDefault="True"
|
||||
Command=""
|
||||
AutomationProperties.AutomationId="{x:Static ghfvs:AutomationIDs.DotcomSignInButton}" />
|
||||
</Border>
|
||||
<Border Style="{StaticResource LoginButtonBorder}" Margin="0 16 0 0">
|
||||
<Button
|
||||
x:Name="dotComLogInButton"
|
||||
Content="{x:Static ghfvs:Resources.LoginLink}"
|
||||
IsDefault="True"
|
||||
Command=""
|
||||
AutomationProperties.AutomationId="{x:Static ghfvs:AutomationIDs.DotcomSignInButton}" />
|
||||
</Border>
|
||||
|
||||
<Grid Margin="0 8">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Rectangle Grid.Column="0" Fill="#FFDDDDDD" Height="1"/>
|
||||
<TextBlock Grid.Column="1" Margin="8,0,8,4">or</TextBlock>
|
||||
<Rectangle Grid.Column="2" Fill="#FFDDDDDD" Height="1"/>
|
||||
</Grid>
|
||||
<Grid Margin="0 8">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Rectangle Grid.Column="0" Fill="#FFDDDDDD" Height="1"/>
|
||||
<TextBlock Grid.Column="1" Margin="8,0,8,4">or</TextBlock>
|
||||
<Rectangle Grid.Column="2" Fill="#FFDDDDDD" Height="1"/>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
||||
<ghfvs:GitHubActionLink x:Name="dotComSsaLogInButton" Content="{x:Static ghfvs:Resources.SignInWithYourBrowser}"/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче