chore : working on game
This commit is contained in:
@@ -21,9 +21,13 @@ const currentGames = computed(() => {
|
||||
<ClientOnly>
|
||||
<template v-if="userStore.self && userStore.self.id">
|
||||
<User :id="userStore.self.id"></User>
|
||||
<button>Logout</button>
|
||||
<NuxtLink :to="$config.public.endpoint + '/logout'"
|
||||
><button>Logout</button></NuxtLink
|
||||
>
|
||||
</template>
|
||||
<button v-else>Login</button>
|
||||
<NuxtLink v-else :to="$config.public.discordLoginEndpoint">
|
||||
<button>Login</button>
|
||||
</NuxtLink>
|
||||
</ClientOnly>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -16,10 +16,14 @@ const game = lobbyStore.games[props.id];
|
||||
</script>
|
||||
|
||||
<template>
|
||||
{{ game.id }}
|
||||
{{ game.players.map((p) => p.user.username) }}
|
||||
{{ game }}
|
||||
|
||||
<NuxtLink :to="'/game/' + id"
|
||||
><input type="button" value="open" :disabled="!userStore.self || loading"
|
||||
/></NuxtLink>
|
||||
<br />
|
||||
</template>
|
||||
|
||||
<style lang="css" scoped>
|
||||
|
||||
Reference in New Issue
Block a user