Skip to content

Commit

Permalink
fix: remove blink on proposal publish (#1982)
Browse files Browse the repository at this point in the history
  • Loading branch information
pugakn authored Jan 30, 2023
1 parent 4f38495 commit 18cff1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/proposals/proposal-view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default {
/**
* Whether this is preview step of creation wizard
*/
created: String,
created: Date,
start: String,
icon: String,
subtitle: String,
Expand Down
4 changes: 2 additions & 2 deletions src/pages/proposals/ProposalDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export default {
}
this.$apollo.queries.proposal.refetch()
}, 300)
}, 2000)
}
},
deep: true,
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 18cff1e

Please sign in to comment.