From ffe8c13ce5219ce5660f843075568983f6dd9516 Mon Sep 17 00:00:00 2001 From: Raphael Odini Date: Tue, 8 Oct 2024 01:03:08 +0200 Subject: [PATCH] refactor(Proof add): on Proof add success, redirect to dashboard. ref #878 --- src/views/Home.vue | 11 ----------- src/views/ProofAddSingle.vue | 5 ++++- src/views/UserDashboard.vue | 11 +++++++++++ 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/src/views/Home.vue b/src/views/Home.vue index 09918998ecf..b85a54d263b 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -29,13 +29,6 @@ - - {{ $t('ProofCreate.Success') }} - { - this.$router.push({ path: '/', query: { proofSingleSuccess: 'true' } }) + this.done() }) .catch(err => { this.$store.app.showError(err) @@ -173,6 +173,9 @@ export default { .finally(() => { this.loading = false }) + }, + done() { + this.$router.push({ path: '/dashboard', query: { proofSingleSuccess: 'true' } }) } } } diff --git a/src/views/UserDashboard.vue b/src/views/UserDashboard.vue index e4203421032..6ef048e9957 100644 --- a/src/views/UserDashboard.vue +++ b/src/views/UserDashboard.vue @@ -43,6 +43,13 @@ > {{ $t('Common.Thanks') }} + + {{ $t('ProofCreate.Success') }} +