mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/help: split search help into sections
This commit is contained in:
@ -14,12 +14,18 @@ class HelpController {
|
||||
page(
|
||||
'/help/:section',
|
||||
(ctx, next) => { this.showHelpRoute(ctx.params.section); });
|
||||
page(
|
||||
'/help/:section/:subsection',
|
||||
(ctx, next) => {
|
||||
this.showHelpRoute(ctx.params.section, ctx.params.subsection);
|
||||
});
|
||||
}
|
||||
|
||||
showHelpRoute(section) {
|
||||
showHelpRoute(section, subsection) {
|
||||
topNavController.activate('help');
|
||||
this.helpView.render({
|
||||
section: section,
|
||||
subsection: subsection,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user