mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
split files into client/ and server/
This commit is contained in:
17
client/js/controllers/help_controller.js
Normal file
17
client/js/controllers/help_controller.js
Normal file
@ -0,0 +1,17 @@
|
||||
'use strict';
|
||||
|
||||
const topNavController = require('../controllers/top_nav_controller.js');
|
||||
const HelpView = require('../views/help_view.js');
|
||||
|
||||
class HelpController {
|
||||
constructor() {
|
||||
this.helpView = new HelpView();
|
||||
}
|
||||
|
||||
showHelpRoute(section) {
|
||||
topNavController.activate('help');
|
||||
this.helpView.render(section);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = new HelpController();
|
Reference in New Issue
Block a user