diff --git a/src/components/GamePage.vue b/src/components/GamePage.vue index 0f7d880..a36e5ff 100644 --- a/src/components/GamePage.vue +++ b/src/components/GamePage.vue @@ -28,6 +28,7 @@ const showDeleteTeamModal = ref(false) const newTeamName = ref('') const showQR = ref(false) const urlQR = ref('') +const titleQR = ref('') const game = ref({ id: undefined, @@ -79,6 +80,7 @@ async function toTeamStory(id: number, password: string, newTab: boolean = false const uri = '/team-story/' + id + '?password=' + password if (newTab) { window.open(uri, '_blank'); + return } router.push(uri) } @@ -123,6 +125,8 @@ const giveApplicationApplication = ref({ image: '' }) +const url = window.location.href + function giveApplication(team: Team, application: Application) { giveApplicationTeam.value = team giveApplicationApplication.value = application @@ -176,8 +180,9 @@ function getTeamStoryURL(id: number, password: string): string { return getURL() + '/team-story/' + id + '?password=' + password } -async function openQR(url: string) { +async function openQR(url: string, text: string) { urlQR.value = url + titleQR.value = text showQR.value = true } @@ -309,6 +314,9 @@ useSimplePolling(() => {
+ + QR + @@ -365,7 +373,7 @@ useSimplePolling(() => {
- + QR @@ -479,8 +487,7 @@ useSimplePolling(() => { - +