diff --git a/src/App.vue b/src/App.vue index 2020bff..3fa5037 100644 --- a/src/App.vue +++ b/src/App.vue @@ -6,7 +6,7 @@ diff --git a/src/pages/Auth.vue b/src/pages/Auth.vue index 47d9a5b..1550dd1 100644 --- a/src/pages/Auth.vue +++ b/src/pages/Auth.vue @@ -132,12 +132,17 @@ export default { this.$store.commit('user/UPDATE_PASSWORD', this.password) this.$store.commit('user/UPDATE_NAME', this.name) this.$store.commit('user/UPDATE_EMAIL', this.email) - console.log(x) + this.generate() .then(res => { this.onReset() this.loading = false }) + .catch(err => { + this.loading = false + }) + + this.loading = false }, login () { this.loading = true diff --git a/src/pages/Signtx.vue b/src/pages/Signtx.vue index ff12bd7..6508231 100644 --- a/src/pages/Signtx.vue +++ b/src/pages/Signtx.vue @@ -2,39 +2,26 @@ Your Keys - + - Nano SSO - February 22nd, 2019 + {{app.name}} + {{app.login_time}} - + +
- - - - - - - Hypermine SSO - September 21st, 2019 - - - - - -
- + @@ -51,7 +38,8 @@ export default { }, data () { return { - scanText: 'Quick Brown Fox Jump Over a Lazy Dog' + scanText: 'Quick Brown Fox Jump Over a Lazy Dog', + apps:[] } }, methods: { @@ -61,24 +49,27 @@ export default { onClick () { this.signMessageTx(this.scanText) .then(res => { - console.log(res) - let data = { - 'data': { - 'attributes': { - 'companyId': 21, - 'signedRsv': res, - 'publicToken': this.wallet.address[0], - 'rawMsg': this.scanText - } - } - } - console.log(JSON.stringify(data)) + + var today = new Date(); + var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds(); + + let app = {} + app.id = Date.now() + app.login_time = time + app.name = 'Ae Laboratory '+'SSO' + app.color = 'green' + this.apps.push(app) }) .catch(err => { console.error(err) }) } - } + }, + computed: { + sortedApps() { + return this.apps.reverse + } + }, }