generated from VLADIMIR/template_frontend
add result
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { Flag, Pause, Play, Reset, Settings } from '@vicons/carbon'
|
||||
import { Flag, Pause, Play, Reset, Settings, Trophy } from '@vicons/carbon'
|
||||
import { Icon } from '@vicons/utils'
|
||||
import { NButton, NTag } from 'naive-ui'
|
||||
import { NCard, NFlex, NInput, NInputNumber, NModal, NQrCode, NSpace, NText } from 'naive-ui'
|
||||
@@ -94,6 +94,10 @@ async function toTeamStory(id: number, password: string, newTab: boolean = false
|
||||
router.push(uri)
|
||||
}
|
||||
|
||||
function toResults() {
|
||||
router.push('/games/' + gameId + '/results')
|
||||
}
|
||||
|
||||
function openSettings() {
|
||||
settingsDraft.value = {
|
||||
name: game.value.name || '',
|
||||
@@ -408,6 +412,12 @@ useSimplePolling(() => {
|
||||
<n-flex justify="end">
|
||||
<n-button quaternary @click="openQR(url, 'Админка')"> QR </n-button>
|
||||
<n-button quaternary @click="openAnswersModal()"> Ответы команд </n-button>
|
||||
<n-button v-if="game.status == 'finish'" quaternary @click="toResults()">
|
||||
<Icon class="settings-icon">
|
||||
<Trophy />
|
||||
</Icon>
|
||||
Итоги
|
||||
</n-button>
|
||||
<n-button quaternary @click="openSettings()">
|
||||
<Icon class="settings-icon">
|
||||
<Settings />
|
||||
|
||||
Reference in New Issue
Block a user