()
| 30 | } |
| 31 | |
| 32 | getRenderData () { |
| 33 | const c = super.getRenderData() |
| 34 | let models = _.values(CocoModel.backedUp) |
| 35 | models = ((() => { |
| 36 | const result = [] |
| 37 | for (const m of Array.from(models)) { |
| 38 | if (m.hasLocalChanges()) { |
| 39 | result.push(m) |
| 40 | } |
| 41 | } |
| 42 | return result |
| 43 | })()) |
| 44 | c.models = models |
| 45 | return c |
| 46 | } |
| 47 | |
| 48 | onHidden () { |
| 49 | if (this.reloadOnClose) { return location.reload() } |
nothing calls this directly
no test coverage detected