This commit is contained in:
parent
fe704cb359
commit
0ac66001bf
@ -87,11 +87,15 @@ void Application::authEvent() {
|
||||
if (m_loginPage) {
|
||||
if (m_navigationBar != nullptr) {
|
||||
m_loginPageRef = m_navigationBar->addLoginItem(std::move(m_loginPage));
|
||||
m_loginPageRef->removeStyleClass("bulma-m-auto");
|
||||
m_loginPageRef->removeStyleClass("bulma-container");
|
||||
}
|
||||
} else if (m_loginPageRef != nullptr && m_loginPageRef->parent() == m_root) {
|
||||
m_loginPage = m_loginPageRef->parent()->removeWidget(m_loginPageRef);
|
||||
if (m_navigationBar != nullptr) {
|
||||
m_loginPageRef = m_navigationBar->addLoginItem(std::move(m_loginPage));
|
||||
m_loginPageRef->removeStyleClass("bulma-m-auto");
|
||||
m_loginPageRef->removeStyleClass("bulma-container");
|
||||
}
|
||||
}
|
||||
setInternalPath("/", true);
|
||||
@ -119,6 +123,7 @@ void Application::handlePathChange(const std::string &path) {
|
||||
if (m_loginPage) {
|
||||
m_root->clear();
|
||||
m_loginPageRef = m_root->addWidget(std::move(m_loginPage));
|
||||
m_loginPageRef->addStyleClass("bulma-m-auto bulma-container");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user