saving data works, refreshes the UI, and also added an option to clear the storage from the UI

This commit is contained in:
Ryan Breen
2023-01-15 23:18:47 -05:00
parent 3315e2ee3c
commit 72c0c5fa98
3 changed files with 30 additions and 2 deletions

View File

@@ -28,8 +28,9 @@
<div class="buttons">
<button @click="visibleKey = !visibleKey" x-text="visibleKey ? 'Hide' : 'Show'"></button>
<button @click="saveKey()">Save</button>
<button @click="profileIndex = 1">Profile Index</button>
<button @click="await saveProfile()">Save</button>
<button @click="confirmClear = true" x-show="!confirmClear">Clear Data</button>
<button @click="await clearData()" x-show="confirmClear">Confirm Clear</button>
</div>
<div x-show="hasValidPubKey">