(model)
| 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 }) |