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

Method onNewModelSaved

app/views/common/SearchView.js:143–147  ·  view source on GitHub ↗
(model)

Source from the content-addressed store, hash-verified

141 }
142
143 onNewModelSaved (model) {
144 this.model = model
145 const base = document.location.pathname.slice(1) + '/'
146 return application.router.navigate(base + (this.model.get('slug') || this.model.id), { trigger: true })
147 }
148
149 newModel (e) {
150 const modal = new NewModelModal({ model: this.model, modelLabel: this.modelLabel, properties: this.modelProperties, hasNoNameProperty: this.hasNoNameProperty })

Callers

nothing calls this directly

Calls 2

navigateMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected