disable web login temporarily

maybe temporarily...
This commit is contained in:
qhy040404
2024-06-04 22:30:32 +08:00
parent 3117aefd54
commit 6e498f5ede
2 changed files with 13 additions and 7 deletions

View File

@@ -2996,6 +2996,9 @@
<data name="ViewUserDocumentationHeader" xml:space="preserve">
<value>文档</value>
</data>
<data name="ViewUserLoginMihoyoUserDisabledTooltip" xml:space="preserve">
<value>由于米游社安全策略的相关更改,网页登录暂不可用</value>
</data>
<data name="ViewUserNoUserHint" xml:space="preserve">
<value>尚未登录</value>
</data>

View File

@@ -213,13 +213,16 @@
HorizontalAlignment="Center"
Style="{StaticResource BaseTextBlockStyle}"
Text="{shcm:ResourceString Name=ViewUserCookieOperation}"/>
<AppBarButton
Width="{StaticResource LargeAppBarButtonWidth}"
MaxWidth="{StaticResource LargeAppBarButtonWidth}"
Margin="2,-4"
Command="{Binding LoginMihoyoUserCommand}"
Icon="{shcm:FontIcon Glyph={StaticResource FontIconContentWebsite}}"
Label="{shcm:ResourceString Name=ViewUserCookieOperationLoginMihoyoUserAction}"/>
<Grid Background="Transparent" ToolTipService.ToolTip="{shcm:ResourceString Name=ViewUserLoginMihoyoUserDisabledTooltip}">
<AppBarButton
Width="{StaticResource LargeAppBarButtonWidth}"
MaxWidth="{StaticResource LargeAppBarButtonWidth}"
Margin="2,-4"
Command="{Binding LoginMihoyoUserCommand}"
Icon="{shcm:FontIcon Glyph={StaticResource FontIconContentWebsite}}"
IsEnabled="False"
Label="{shcm:ResourceString Name=ViewUserCookieOperationLoginMihoyoUserAction}"/>
</Grid>
<AppBarButton
Width="{StaticResource LargeAppBarButtonWidth}"
MaxWidth="{StaticResource LargeAppBarButtonWidth}"