K356/k356/main/templates/components/Loading/vue.js

23 lines
383 B
JavaScript

Loading = {
template: "#Loading",
router_path: "/",
props: [],
data: function() {
return {
password: '',
}
},
methods: {
async generate_aes_key (password) {
const key = await this.deriveKeyFromPassphrase(password, "{{ user_setting.id }}--aes")
this.$emit("update_key", key)
},
}
}