Added rudimentary tags page. Improved social match behavior.
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import { get } from '../api';
|
||||
|
||||
function initTagsActions(store, _router) {
|
||||
async function fetchTags({ _commit }, tagId) {
|
||||
const tags = await get(`/tags/${tagId || ''}`);
|
||||
async function fetchTags({ _commit }, { tagId, limit = 100, priority }) {
|
||||
if (tagId) {
|
||||
return get(`/tags/${tagId}`);
|
||||
}
|
||||
|
||||
return tags;
|
||||
return get('/tags', { limit, priority });
|
||||
}
|
||||
|
||||
async function fetchTagReleases({ _commit }, tagId) {
|
||||
|
||||
Reference in New Issue
Block a user