Disable the Save button, enabled after a change to indicate that save needs to be done.

This commit is contained in:
Ryan Breen
2023-01-22 22:07:17 -05:00
parent 6e0716d20d
commit 16589e2313
2 changed files with 9 additions and 6 deletions

View File

@@ -33,7 +33,7 @@
<div class="buttons">
<button @click="visibleKey = !visibleKey" x-text="visibleKey ? 'Hide' : 'Show'"></button>
<button @click="await saveProfile()">Save</button>
<button @click="await saveProfile()" :disabled="!needsSaving">Save</button>
<button @click="confirmClear = true" x-show="!confirmClear">Clear Data</button>
<button @click="await clearData()" x-show="confirmClear">Confirm Clear</button>
</div>