Added favorite stash heart to scene tiles.

This commit is contained in:
DebaucheryLibrarian
2021-03-19 03:27:48 +01:00
parent f3d55806d1
commit 731a2792c5
15 changed files with 146 additions and 28 deletions

View File

@@ -2,10 +2,12 @@ import { graphql } from '../api';
import { releaseFields } from '../fragments';
import { curateUser } from '../curate';
function initUsersActions(_store, _router) {
function initUsersActions(store, _router) {
async function fetchUser(context, username) {
const { user } = await graphql(`
query User(
$hasAuth: Boolean!
$userId: Int
$username: String!
) {
user: userByUsername(username: $username) {
@@ -52,6 +54,8 @@ function initUsersActions(_store, _router) {
}
}
`, {
hasAuth: !!store.state.auth.user,
userId: store.state.auth.user?.id,
username,
});