fixed track me not requiring sharecode when no matches are on rekord (#50)
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good

Co-authored-by: vikingowl <cw.nachtigall@gmail.com>
Reviewed-on: https://git.harting.dev/CSGOWTF/csgowtf/pulls/50
Co-authored-by: vikingowl <vikingowl@git.harting.dev>
Co-committed-by: vikingowl <vikingowl@git.harting.dev>
This commit is contained in:
vikingowl
2022-01-31 22:43:45 +01:00
committed by vikingowl
parent 4464d92e81
commit 473c805402

View File

@@ -92,7 +92,8 @@
<!-- ShareCode input -->
<div class="form-outline mb-2">
<input id="track-sharecode" v-model="data.userData.sharecode" class="form-control bg-secondary"
placeholder="ShareCode (optional)"
:placeholder="store.state.playerDetails.matches ? 'ShareCode (optional)' : 'ShareCode (required)'"
:required="!store.state.playerDetails.matches"
type="text"/>
</div>
@@ -123,7 +124,7 @@
<div class="matches">
<MatchesTable v-if="store.state.playerDetails.matches" :matches="store.state.playerDetails.matches" color-front />
<h5 v-else>No matches on record</h5>
<h5 v-else>Track yourself to see your matches</h5>
</div>