()
| 36 | } |
| 37 | |
| 38 | onLoaded () { |
| 39 | super.onLoaded() |
| 40 | this.buildTreema() |
| 41 | this.listenTo(this.resource, 'change', () => { |
| 42 | this.resource.updateI18NCoverage() |
| 43 | return this.treema.set('/', this.resource.attributes) |
| 44 | }) |
| 45 | |
| 46 | if (!this.filePath || !this.redirectPathOnSuccess || !this.resourceName) { |
| 47 | console.error('EditView: required field not set', this.filePath, this.redirectPathOnSuccess, this.resourceName) |
| 48 | return noty({ text: 'EditView: required field not set', layout: 'center', type: 'error', timeout: 10000 }) |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | buildTreema () { |
| 53 | if ((this.treema != null) || (!this.resource.loaded)) { return } |
nothing calls this directly
no test coverage detected