fixed track me not requiring sharecode when no matches are on record #50

Merged
vikingowl merged 1 commits from fix-49 into dev 2022-01-31 22:43:46 +01:00

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>