See #228: now use our new action logic for library track import

This commit is contained in:
Eliot Berriot 2018-05-23 21:50:23 +02:00
parent f1a1b93ee5
commit ba4b6f6ba6
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
9 changed files with 109 additions and 73 deletions

View file

@ -157,10 +157,11 @@ export default {
let self = this
self.isImporting = true
let payload = {
library_tracks: this.checked
objects: this.checked,
action: 'import'
}
axios.post('/submit/federation/', payload).then((response) => {
self.importBatch = response.data
axios.post('/federation/library-tracks/action/', payload).then((response) => {
self.importBatch = response.data.result.batch
self.isImporting = false
self.fetchData()
}, error => {