MCPcopy Index your code
hub / github.com/codecombat/codecombat / getRenderData

Method getRenderData

app/views/editor/PatchModal.js:76–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74 }
75
76 getRenderData () {
77 const c = super.getRenderData()
78 c.isPatchCreator = this.patch.get('creator') === auth.me.id
79 c.isPatchRecipient = this.targetModel.hasWriteAccess()
80 c.isLevel = __guard__(this.patch.get('target'), x => x.collection) === 'level'
81 c.status = this.patch.get('status')
82 c.patch = this.patch
83 c.deltaWorked = this.deltaWorked
84 return c
85 }
86
87 afterRender () {
88 if (!this.supermodel.finished() || !this.deltaWorked) { return super.afterRender() }

Callers

nothing calls this directly

Calls 3

hasWriteAccessMethod · 0.80
__guard__Function · 0.70
getMethod · 0.45

Tested by

no test coverage detected