MCPcopy Create free account
hub / github.com/codecombat/codecombat / onClickEditMandate

Method onClickEditMandate

app/views/admin/MainAdminView.js:550–557  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

548 }
549
550 onClickEditMandate (e) {
551 if (this.mandate == null) { this.mandate = this.supermodel.loadModel(new Mandate()).model }
552 if (this.mandate.loaded) {
553 return this.editMandate(this.mandate)
554 } else {
555 return this.listenTo(this.mandate, 'sync', this.editMandate)
556 }
557 }
558
559 onClickMaintenanceMode (e) {
560 if (me.isAdmin()) { return (typeof this.openModalView === 'function' ? this.openModalView(new MaintenanceModal()) : undefined) }

Callers

nothing calls this directly

Calls 1

editMandateMethod · 0.95

Tested by

no test coverage detected