Can now accept/deny follow requests

This commit is contained in:
Eliot Berriot 2018-04-14 18:50:37 +02:00
parent ca02aca327
commit fc09a3b320
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
11 changed files with 344 additions and 21 deletions

View file

@ -64,13 +64,19 @@
></pagination>
</th>
<th>Showing results {{ ((page-1) * paginateBy) + 1 }}-{{ ((page-1) * paginateBy) + result.results.length }} on {{ result.count }}</th>
<th v-if="result && result.results.length > 0">
Showing results {{ ((page-1) * paginateBy) + 1 }}-{{ ((page-1) * paginateBy) + result.results.length }} on {{ result.count }}</th>
<th>
<button
@click="launchImport"
:disabled="checked.length === 0 || isImporting"
:class="['ui', 'green', {loading: isImporting}, 'button']">Import {{ checked.length }} tracks
</button>
<router-link
v-if="importBatch"
:to="{name: 'library.import.batches.detail', params: {id: importBatch.id }}">
Import #{{ importBatch.id }} launched
</router-link>
</th>
<th></th>
<th></th>
@ -104,7 +110,8 @@ export default {
paginateBy: 25,
search: '',
checked: {},
isImporting: false
isImporting: false,
importBatch: null
}
},
created () {
@ -135,6 +142,7 @@ export default {
library_tracks: this.checked
}
axios.post('/submit/federation/', payload).then((response) => {
self.importBatch = response.data
self.isImporting = false
self.fetchData()
}, error => {