({ dispatch }, data)
| 121 | }) |
| 122 | }, |
| 123 | addTorrent ({ dispatch }, data) { |
| 124 | const { torrent, options } = data |
| 125 | return api.addTorrent({ torrent, options }) |
| 126 | .then(() => { |
| 127 | dispatch('fetchList') |
| 128 | dispatch('app/updateAddTaskOptions', {}, { root: true }) |
| 129 | }) |
| 130 | }, |
| 131 | addMetalink ({ dispatch }, data) { |
| 132 | const { metalink, options } = data |
| 133 | return api.addMetalink({ metalink, options }) |
nothing calls this directly
no test coverage detected