(...args)
| 43 | module.exports = (MainAdminView = (function () { |
| 44 | MainAdminView = class MainAdminView extends RootView { |
| 45 | constructor (...args) { |
| 46 | super(...args) |
| 47 | this.onSearchRequestSuccess = this.onSearchRequestSuccess.bind(this) |
| 48 | this.onSearchRequestFailure = this.onSearchRequestFailure.bind(this) |
| 49 | this.onClickFreeSubLink = this.onClickFreeSubLink.bind(this) |
| 50 | this.onClickToggleAdminAvailability = this.onClickToggleAdminAvailability.bind(this) |
| 51 | this.onClickTerminalSubLink = this.onClickTerminalSubLink.bind(this) |
| 52 | this.onClickTerminalActivationLink = this.onClickTerminalActivationLink.bind(this) |
| 53 | this.editMandate = this.editMandate.bind(this) |
| 54 | if (window.serverSession.amActually) { |
| 55 | this.amActually = new User({ _id: window.serverSession.amActually }) |
| 56 | this.amActually.fetch() |
| 57 | this.supermodel.trackModel(this.amActually) |
| 58 | } |
| 59 | this.featureMode = window.serverSession.featureMode |
| 60 | if (me.isParentAdmin()) { |
| 61 | this.checkParentAdminAvailability() |
| 62 | } |
| 63 | this.timeZone = (typeof features !== 'undefined' && features !== null ? features.chinaInfra : undefined) ? 'Asia/Shanghai' : 'America/Los_Angeles' |
| 64 | this.prepaidEndDate = moment().tz(this.timeZone).add(1, 'year').format('YYYY-MM-DD') |
| 65 | } |
| 66 | |
| 67 | static initClass () { |
| 68 | this.prototype.id = 'admin-view' |
nothing calls this directly
no test coverage detected