(list, isDone)
| 191 | }, |
| 192 | |
| 193 | noteUpdate(list, isDone) { |
| 194 | for (let id of list) { |
| 195 | this.updating[id] = {startedAt: new Date(), done: isDone} |
| 196 | } |
| 197 | let clearAll = false |
| 198 | for (let id in this.updating) { |
| 199 | clearAll = true |
| 200 | if (!this.updating[id].done) { |
| 201 | clearAll = false |
| 202 | break |
| 203 | } |
| 204 | } |
| 205 | if (clearAll) { |
| 206 | this.updating = {} |
| 207 | } |
| 208 | this.update({op: 'replace', path: '/updating', value: this.updating}) |
| 209 | }, |
| 210 | |
| 211 | // |
| 212 | // Use Fraidyscrape to figure out the requests that need to made and build |