Added actors page. Added site logos with overview on network page.
This commit is contained in:
22
assets/js/actors/actions.js
Normal file
22
assets/js/actors/actions.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import { get } from '../api';
|
||||
|
||||
function initActorActions(_store, _router) {
|
||||
async function fetchActors({ _commit }, actorId) {
|
||||
const networks = await get(`/actors/${actorId || ''}`);
|
||||
|
||||
return networks;
|
||||
}
|
||||
|
||||
async function fetchActorReleases({ _commit }, actorId) {
|
||||
const releases = await get(`/actors/${actorId}/releases`);
|
||||
|
||||
return releases;
|
||||
}
|
||||
|
||||
return {
|
||||
fetchActors,
|
||||
fetchActorReleases,
|
||||
};
|
||||
}
|
||||
|
||||
export default initActorActions;
|
||||
Reference in New Issue
Block a user