Skip to content

Commit

Permalink
Update TPS Exporter UI
Browse files Browse the repository at this point in the history
  • Loading branch information
AidanSun05 committed Feb 26, 2024
1 parent a3c1e31 commit 0c8dacd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/TPSExporter.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<template>
<RouterLink :to="{ name: 'home' }">Home</RouterLink>
<p>This is an exporter for data in The Purple Standard (TPS).</p>
<label for="team-number-input">Team Number</label>
<input type="number" v-model.number="teamNumber" id="team-number-input">
<button v-if="tpsData" @click="downloadTPSData">Download TPS Data</button>
<template v-if="tpsData">
<label for="team-number-input">Team Number</label>
<input type="number" v-model.number="teamNumber" id="team-number-input">
<button @click="downloadTPSData">Download TPS Data</button>
</template>
<p v-else>No TPS Data</p>
<p v-show="error">Schema fetch failed: {{ error }}</p>
<a ref="downloadLink" style="visibility: hidden"></a>
Expand Down

0 comments on commit 0c8dacd

Please sign in to comment.