From 18cff1e4741605355f53efa939813b301bd0ccdb Mon Sep 17 00:00:00 2001 From: Irving Puga Date: Mon, 30 Jan 2023 17:17:42 -0600 Subject: [PATCH] fix: remove blink on proposal publish (#1982) --- src/components/proposals/proposal-view.vue | 2 +- src/pages/proposals/ProposalDetail.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/proposals/proposal-view.vue b/src/components/proposals/proposal-view.vue index 78b1008f3..ed786ed0a 100644 --- a/src/components/proposals/proposal-view.vue +++ b/src/components/proposals/proposal-view.vue @@ -33,7 +33,7 @@ export default { /** * Whether this is preview step of creation wizard */ - created: String, + created: Date, start: String, icon: String, subtitle: String, diff --git a/src/pages/proposals/ProposalDetail.vue b/src/pages/proposals/ProposalDetail.vue index ff174c3b6..9223ac6b3 100644 --- a/src/pages/proposals/ProposalDetail.vue +++ b/src/pages/proposals/ProposalDetail.vue @@ -221,7 +221,7 @@ export default { } this.$apollo.queries.proposal.refetch() - }, 300) + }, 2000) } }, deep: true, @@ -403,8 +403,8 @@ export default { async onPublish (proposal) { try { - this.state = 'PUBLISHING' await this.publishProposal(proposal.docId) + this.state = 'PUBLISHING' this.$router.replace({ params: { data: proposal, isPublishing: true }, query: { refetch: true } }) } catch (e) { this.state = 'WAITING'