1
0
Fork 0
mirror of https://github.com/Luzifer/wasm-openssl.git synced 2024-11-09 15:20:06 +00:00

Hide interface until load, display loading errors

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-08-24 17:58:39 +02:00
parent c617e74d04
commit df07d2b8ea
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -28,6 +28,7 @@
{{ error }}
</b-alert>
<template v-if="loaded">
<b-form-input
v-model="passphrase"
class="mb-2"
@ -52,6 +53,7 @@
placeholder="Paste ciphertext here..."
v-model="ciphertext"
></b-form-textarea>
</template>
</b-col>
</b-row>
@ -123,7 +125,9 @@
WebAssembly.instantiateStreaming(fetch("openssl.wasm"), go.importObject)
.then(result => go.run(result.instance))
.catch(err => console.error(err))
.catch(err => {
this.error = err
})
},
},