Commit 99cb5e6c authored by VINXIS's avatar VINXIS
Browse files

test

parent 38071feb
Pipeline #4353 passed with stages
in 6 minutes and 27 seconds
......@@ -123,8 +123,8 @@
</div>
<a href='#bottom' class="matchToBottom">{{ $t('match.bottom') }} <img src="../img/triangle.png"></a>
</div>
<span class="matchBans" v-if="spoiler && match.winner">MATCH BANS</span>
<div v-for="index in match.bestOf === 3 ? 2 : 1 ? 0 : 4" :key="index">
<span class="matchBans" v-if="spoiler && match.winner && match.bestOf > 1">MATCH BANS</span>
<div v-for="index in match.bestOf === 3 ? 4 : 1 ? 0 : 6" :key="index">
<match-map-ban v-if="edit || match.bans[index-1] && spoiler && ((match.winner && match.sets.length !== 0) || (match.referee && match.referee.username === user.username) || user.isCorsace)" @refresh="refresh" :matchid="match.matchID" :edit="edit" :set-num="0" :set-map="match.bans[index-1] ? match.bans[index-1] : null" :map-num="1" :team="index % 2 === 1 ? (match.first ? match.first : null) : (match.first && match.first.name === match.teamA.name ? match.teamB : (match.first ? match.teamA : null))"></match-map-ban>
</div>
<span class="matchBans" v-if="spoiler && match.winner">SET INFO</span>
......
......@@ -204,8 +204,8 @@
<option v-for="(map, index) in remainingMaps" :key="index" :value="map">{{map.name}}</option>
</select>
<div class="empty" v-if="bo9.some(s => s === selectedStage)"></div>
<span class="matchBan" v-if="index < selectedMatch.bestOf-1">MATCH BAN</span>
<select class="ban" v-if="index < selectedMatch.bestOf-1" @change="map(index-1, -2, 'BANNED')" v-model="matchBans[2*index-2]">
<span class="matchBan" v-if="electedMatch.bestOf === 5 ? index < selectedMatch.bestOf-1 : index <= selectedMatch.bestOf-1">MATCH BAN</span>
<select class="ban" v-if="electedMatch.bestOf === 5 ? index < selectedMatch.bestOf-1 : index <= selectedMatch.bestOf-1" @change="map(index-1, -2, 'BANNED')" v-model="matchBans[2*index-2]">
<option v-if="selectedMaps[index-1][0]" :value="selectedMaps[index-1][0]">{{selectedMaps[index-1][0].name}}</option>
<option v-if="selectedMaps[index-1][5]" :value="selectedMaps[index-1][5]">{{selectedMaps[index-1][5].name}}</option>
<option v-if="bo9.some(s => s === selectedStage) && selectedMaps[index-1][11]" :value="selectedMaps[index-1][11]">{{selectedMaps[index-1][11].name}}</option>
......@@ -250,8 +250,8 @@
</select>
<div class="empty" v-if="bo9.some(s => s === selectedStage)"></div>
<div class="empty"></div>
<span class="matchBan" v-if="index < selectedMatch.bestOf-1">MATCH BAN</span>
<select class="ban" v-if="index < selectedMatch.bestOf-1" @change="map(index-1, -1, 'BANNED')" v-model="matchBans[2*index-1]">
<span class="matchBan" v-if="selectedMatch.bestOf === 5 ? index < selectedMatch.bestOf-1 : index <= selectedMatch.bestOf-1">MATCH BAN</span>
<select class="ban" v-if="electedMatch.bestOf === 5 ? index < selectedMatch.bestOf-1 : index <= selectedMatch.bestOf-1" @change="map(index-1, -1, 'BANNED')" v-model="matchBans[2*index-1]">
<option v-if="selectedMaps[index-1][1]" :value="selectedMaps[index-1][1]">{{selectedMaps[index-1][1].name}}</option>
<option v-if="selectedMaps[index-1][4]" :value="selectedMaps[index-1][4]">{{selectedMaps[index-1][4].name}}</option>
<option v-if="bo9.some(s => s === selectedStage) && selectedMaps[index-1][10]" :value="selectedMaps[index-1][10]">{{selectedMaps[index-1][10].name}}</option>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment