+
+
+
+
+
+
+ Actor |
+ Creation date |
+ Status |
+ Actions |
+
+
+
+
+
+ {{ follow.actor.preferred_username }}@{{ follow.actor.domain }}
+ |
+
+
+ |
+
+
+ Approved
+
+
+ Refused
+
+
+ Pending
+
+ |
+
+
+ Deny
+ Deny access?
+ By confirming, {{ follow.actor.preferred_username }}@{{ follow.actor.domain }} will be denied access to your library.
+ Deny
+
+
+ Approve
+ Approve access?
+ By confirming, {{ follow.actor.preferred_username }}@{{ follow.actor.domain }} will be granted access to your library.
+ Approve
+
+ |
+
+
+
+
+
+
+ |
+
+ Showing results {{ ((page-1) * paginateBy) + 1 }}-{{ ((page-1) * paginateBy) + result.results.length }} on {{ result.count }} |
+ |
+ |
+
+
+
+
+
+
+
diff --git a/front/src/components/federation/LibraryTrackTable.vue b/front/src/components/federation/LibraryTrackTable.vue
index e5255252e..6404f3990 100644
--- a/front/src/components/federation/LibraryTrackTable.vue
+++ b/front/src/components/federation/LibraryTrackTable.vue
@@ -64,13 +64,19 @@
>
-
Showing results {{ ((page-1) * paginateBy) + 1 }}-{{ ((page-1) * paginateBy) + result.results.length }} on {{ result.count }} |
+
+ Showing results {{ ((page-1) * paginateBy) + 1 }}-{{ ((page-1) * paginateBy) + result.results.length }} on {{ result.count }} |
+
+ Import #{{ importBatch.id }} launched
+
|
|
|
@@ -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 => {
diff --git a/front/src/router/index.js b/front/src/router/index.js
index 0ef3dcf24..a2bf78195 100644
--- a/front/src/router/index.js
+++ b/front/src/router/index.js
@@ -30,6 +30,7 @@ import FederationScan from '@/views/federation/Scan'
import FederationLibraryDetail from '@/views/federation/LibraryDetail'
import FederationLibraryList from '@/views/federation/LibraryList'
import FederationTrackList from '@/views/federation/LibraryTrackList'
+import FederationFollowersList from '@/views/federation/LibraryFollowersList'
Vue.use(Router)
@@ -118,6 +119,17 @@ export default new Router({
defaultPage: route.query.page
})
},
+ {
+ path: 'followers',
+ name: 'federation.followers.list',
+ component: FederationFollowersList,
+ props: (route) => ({
+ defaultOrdering: route.query.ordering,
+ defaultQuery: route.query.query,
+ defaultPaginateBy: route.query.paginateBy,
+ defaultPage: route.query.page
+ })
+ },
{ path: 'libraries/:id', name: 'federation.libraries.detail', component: FederationLibraryDetail, props: true }
]
},
diff --git a/front/src/views/federation/Base.vue b/front/src/views/federation/Base.vue
index b90ba723a..7958bb36b 100644
--- a/front/src/views/federation/Base.vue
+++ b/front/src/views/federation/Base.vue
@@ -7,10 +7,39 @@
Tracks
+