added refresh button

This commit is contained in:
Kevin F 2022-12-19 22:08:58 +00:00
parent 6d5494a851
commit 4bbeac677d

View File

@ -28,6 +28,9 @@
</details>
<span>
<br>
<div><button @click="getCredits(); getPricingInfo();">Refresh Credits</button></div>
<br>
<div v-if="RegExp('^[0-9]+$').test(ownedNumber)"><span>Phone Number: </span>{{ formatPhone(ownedNumber) }}</div>
<div v-else><span>Phone Number: </span>{{ ownedNumber }}</div>
</span>
@ -44,7 +47,7 @@
<tbody>
<tr v-for="(number,i) in availableNumbers" :key="i">
<th scope="row" v-if="number">{{ formatPhone(number) }}</th>
<td><button @click="buyNum" v-if="number" :data-number="number">Buy</button></td>
<td><button @click="buyNum" v-if="number" :data-number="number">Buy (360 credits)</button></td>
</tr>
</tbody>
</table>