Skip to content

Commit

Permalink
Disable the Verify button/change the text during verification
Browse files Browse the repository at this point in the history
Signed-off-by: piit79 <[email protected]>
  • Loading branch information
piit79 committed Jan 24, 2024
1 parent aba7933 commit 051e248
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/verify-tab/VerifyTabPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
</tr>
</table>
<div class="flex justify-center mb-4">
<button class="btn px-4 py-1" @click="verifyClicked">Verify OTA package signature</button>
<button class="btn px-4 py-1" @click="verifyClicked" :disabled="verifying">{{ verifying ? "Verifying, please wait..." : "Verify OTA package signature" }}</button>
</div>
<form>
<input class="hidden" type="file" ref="inputRef" @change="verifyFileInput" />
Expand All @@ -104,6 +104,7 @@ export default {
verifyResult: '',
verifySignInfo: null,
fileName: '',
verifying: false,
isVerified: false
}),
methods: {
Expand Down Expand Up @@ -135,7 +136,9 @@ export default {
this.isVerified = result.status
this.verifyResult = result.msg
this.verifySignInfo = result.signInfo
this.verifying = false
}
this.verifying = true
fileReader.onloadstart = () => store.commit('startRequest')
fileReader.onloadend = () => store.commit('endRequest')
fileReader.readAsArrayBuffer(blob)
Expand Down

0 comments on commit 051e248

Please sign in to comment.