generated from VLADIMIR/template_frontend
fix
This commit is contained in:
@@ -124,6 +124,7 @@ const previewQuestions = ref<ResultsQuestion[]>([])
|
||||
const previewTeams = ref<TeamResult[]>([])
|
||||
const mapItems = ref<MapItem[]>([])
|
||||
const mapSaving = ref(false)
|
||||
const mapDragging = ref(false)
|
||||
const screenVolume = ref(100)
|
||||
const screenPosition = ref(0)
|
||||
|
||||
@@ -326,8 +327,9 @@ async function bindScannedScreen(screenID: string, accessToken: string) {
|
||||
}
|
||||
|
||||
async function getGameMap() {
|
||||
if (mapSaving.value) return
|
||||
if (mapSaving.value || mapDragging.value) return
|
||||
const res = await client.GetGameMap({ gameID: Number(gameId) })
|
||||
if (mapSaving.value || mapDragging.value) return
|
||||
mapItems.value = res.items || []
|
||||
}
|
||||
getGameMap()
|
||||
@@ -870,6 +872,7 @@ useSimplePolling(() => {
|
||||
:screen-volume="screenVolume"
|
||||
:screen-position="screenPosition"
|
||||
@save-item="saveMapItemAndReload"
|
||||
@dragging="mapDragging = $event"
|
||||
@give-application="giveApplication"
|
||||
@add-step="addScreenPlanStep"
|
||||
@edit="editScreenPlan"
|
||||
|
||||
Reference in New Issue
Block a user