generated from VLADIMIR/template_frontend
add block game
This commit is contained in:
@@ -75,8 +75,12 @@ async function getGame(id: number) {
|
||||
}
|
||||
getGame(Number(gameId))
|
||||
|
||||
async function toTeamStory(id: number, password: string) {
|
||||
router.push('/team-story/' + id + '?password=' + password)
|
||||
async function toTeamStory(id: number, password: string, newTab: boolean = false) {
|
||||
const uri = '/team-story/' + id + '?password=' + password
|
||||
if (newTab) {
|
||||
window.open(uri, '_blank');
|
||||
}
|
||||
router.push(uri)
|
||||
}
|
||||
|
||||
async function updateGame() {
|
||||
@@ -364,7 +368,7 @@ useSimplePolling(() => {
|
||||
<n-button @click="openQR(getTeamStoryURL(team.id!, team.password!))">
|
||||
QR
|
||||
</n-button>
|
||||
<n-button @click="toTeamStory(team.id!, team.password!)">
|
||||
<n-button @click="toTeamStory(team.id!, team.password!, true)">
|
||||
Подсмотреть игру
|
||||
</n-button>
|
||||
<n-button type="error" ghost @click="deleteTeam(team)">
|
||||
@@ -498,6 +502,7 @@ useSimplePolling(() => {
|
||||
margin: 10px 0;
|
||||
border-radius: 10px;
|
||||
background-color: #222;
|
||||
border: 1px solid #222;
|
||||
}
|
||||
|
||||
.team-block-hover:hover {
|
||||
|
||||
Reference in New Issue
Block a user