Move tag posters and photos to media database.
This commit is contained in:
@@ -1,12 +1,23 @@
|
||||
import { get } from '../api';
|
||||
|
||||
function initTagsActions(store, _router) {
|
||||
async function fetchTags({ _commit }, { tagId, limit = 100, priority }) {
|
||||
async function fetchTags({ _commit }, {
|
||||
tagId,
|
||||
limit = 100,
|
||||
slug,
|
||||
group,
|
||||
priority,
|
||||
}) {
|
||||
if (tagId) {
|
||||
return get(`/tags/${tagId}`);
|
||||
}
|
||||
|
||||
return get('/tags', { limit, priority });
|
||||
return get('/tags', {
|
||||
limit,
|
||||
slug,
|
||||
priority,
|
||||
group,
|
||||
});
|
||||
}
|
||||
|
||||
async function fetchTagReleases({ _commit }, tagId) {
|
||||
|
||||
Reference in New Issue
Block a user