Implemented tab switch for diff. user types

This commit is contained in:
Andrew nuark G 2020-12-27 19:44:12 +07:00
parent 8c9cb25c6f
commit b6fb78bb75
4 changed files with 29 additions and 6 deletions

View file

@ -57,8 +57,8 @@ void AuthWindow::on_auth_requested() {
((AdminPanel*) w)->set_user(*user);
}
else if (user->role() == UserRole::DISPATCHER) {
// DispatcherPanel(nullptr, user).set_user(user).show();
return;
w = new AdminPanel(nullptr);
((AdminPanel*) w)->set_user(*user);
}
else if (user->role() == UserRole::SKIPPER) {
// SkipperPanel(nullptr, user).set_user(user).show();