mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
refact
This commit is contained in:
@@ -284,10 +284,13 @@ void InstructorsAndTraineesWidget::slot_checkDeLoginResult(ServerDeAuthorization
|
||||
ui->btnPersonalCard->setEnabled(false);
|
||||
|
||||
updateLabelLoggedInInstructor(instructorLoggedInLocal);
|
||||
|
||||
waitAnimationWidget->hideWithStop();
|
||||
}
|
||||
else
|
||||
{
|
||||
ui->btnAuthorizationInstructor->setChecked(true);
|
||||
waitAnimationWidget->hideWithStop();
|
||||
SpecMsgBox::CriticalClose(this, tr("Instructor deauthorization") + "\n" + tr("Error!"));
|
||||
}
|
||||
}
|
||||
@@ -300,7 +303,7 @@ void InstructorsAndTraineesWidget::slot_ServerBlocked()
|
||||
waitAnimationWidget->hideWithStop();
|
||||
|
||||
ui->btnAuthorizationInstructor->setChecked(false);
|
||||
SpecMsgBox::WarningClose(this, tr("Instructor authorization.") + "\n" + tr("Server blocked!"));
|
||||
SpecMsgBox::WarningClose(this, tr("Instructor authorization is temporarily unavailable.") + "\n" + tr("Server blocked!") + "\n" + tr("Try again later."));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -548,7 +551,7 @@ bool InstructorsAndTraineesWidget::authorizationInstructorDialog(QWidget* parent
|
||||
}
|
||||
|
||||
bool InstructorsAndTraineesWidget::deAuthorizationInstructor(QString login)
|
||||
{
|
||||
{
|
||||
connectorToServer->sendDeAuthorizationInstructorLocal(login);
|
||||
return true;
|
||||
}
|
||||
@@ -596,6 +599,8 @@ void InstructorsAndTraineesWidget::on_btnAuthorizationInstructor_clicked()
|
||||
{//ДеАвторизация Инструктора локальная (Администратора)
|
||||
if(authorizationIsCompleted())
|
||||
{
|
||||
waitAnimationWidget->showWithPlay();
|
||||
|
||||
if(deAuthorizationInstructor(instructorLoggedInLocal.getLogin()))
|
||||
{
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user