Fixed regression on nav active states + bad default entry point
This commit is contained in:
@@ -525,6 +525,7 @@ namespace lms::ui
|
||||
});
|
||||
|
||||
mainRouter->activate();
|
||||
doJavaScript(javaScriptClass() + ".updateActiveNav('" + wApp->internalPath() + "')");
|
||||
}
|
||||
|
||||
void LmsApplication::notify(const Wt::WEvent& event)
|
||||
|
||||
@@ -38,11 +38,10 @@ namespace lms::ui
|
||||
|
||||
void PathRouter::activate()
|
||||
{
|
||||
handlePathChange();
|
||||
|
||||
LmsApp->internalPathChanged().connect(this, [this] {
|
||||
handlePathChange();
|
||||
});
|
||||
handlePathChange();
|
||||
}
|
||||
|
||||
void PathRouter::handlePathChange()
|
||||
|
||||
Reference in New Issue
Block a user