szurubooru/static/js/controllers/help_controller.js

16 lines
361 B
JavaScript
Raw Normal View History

'use strict';
class HelpController {
2016-03-29 12:34:10 +02:00
constructor(topNavigationController, helpView) {
this.topNavigationController = topNavigationController;
2016-03-29 12:34:10 +02:00
this.helpView = helpView;
}
2016-03-29 12:34:10 +02:00
showHelpRoute(section) {
this.topNavigationController.activate('help');
2016-03-29 12:34:10 +02:00
this.helpView.render(section);
}
}
module.exports = HelpController;