()
| 27 | module.exports = (CertificatesView = (function () { |
| 28 | CertificatesView = class CertificatesView extends RootView { |
| 29 | static initClass () { |
| 30 | this.prototype.id = 'certificates-view' |
| 31 | this.prototype.template = require('app/templates/user/certificates-view') |
| 32 | |
| 33 | this.prototype.events = { |
| 34 | 'click .print-btn': 'onClickPrintButton', |
| 35 | 'click .toggle-btn': 'onClickToggleButton', |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | getTitle () { |
| 40 | if (this.user?.broadName() === 'Anonymous' || !this.user) { return 'Certificate' } |