mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 14:59:15 +02:00
See #228: now use our new action logic for library track import
This commit is contained in:
parent
f1a1b93ee5
commit
ba4b6f6ba6
9 changed files with 109 additions and 73 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue