Skip to content

Commit

Permalink
[FIX] Main page
Browse files Browse the repository at this point in the history
  • Loading branch information
ваня authored and ваня committed Jun 16, 2023
1 parent cfa3782 commit 3f228a8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion source/EduCATS/Pages/Login/ViewModels/LoginPageViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,15 @@ protected async Task openRegistration()

protected async Task openParental()
{
await _services.Navigation.OpenFindGroup(CrossLocalization.Translate("parental_login"));
if (Servers.Current == Servers.EduCatsAddress)
{
await _services.Navigation.OpenFindGroup(CrossLocalization.Translate("parental_login"));
}
else
{
_services.Dialogs.ShowMessage(CrossLocalization.Translate("invaild_server"),
CrossLocalization.Translate("change_server"));
}
}


Expand Down

0 comments on commit 3f228a8

Please sign in to comment.