mirror of
https://github.com/tornadocash/trusted-setup-server.git
synced 2024-11-21 17:36:54 +01:00
hide attestation button
-fix button padding -fix response on logout request -fix cursor when disabled fieldset
This commit is contained in:
parent
32eb117a0f
commit
49b87d51b3
@ -79,6 +79,7 @@
|
||||
.box {
|
||||
background-color: $primary-invert;
|
||||
border-color: #393939;
|
||||
cursor: inherit;
|
||||
|
||||
.title {
|
||||
color: $white;
|
||||
@ -148,4 +149,15 @@
|
||||
margin-bottom: $block-spacing;
|
||||
}
|
||||
}
|
||||
|
||||
> .buttons {
|
||||
&:not(:last-child) {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.button {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -42,7 +42,7 @@
|
||||
Make the contribution
|
||||
</b-button>
|
||||
<b-button
|
||||
v-if="status.type === 'is-success'"
|
||||
v-if="status.type === 'is-success' && contributionType !== 'anonymous'"
|
||||
@click="makeTweet"
|
||||
type="is-primary"
|
||||
tag="a"
|
||||
@ -160,14 +160,17 @@ export default {
|
||||
body: formData
|
||||
})
|
||||
if (resp.ok) {
|
||||
this.status.msg =
|
||||
'Your contribution is verified and recorded. Now you can post attestation from your twitter account.'
|
||||
this.status.type = 'is-success'
|
||||
const responseData = await resp.json()
|
||||
this.$store.commit('user/SET_CONTRIBUTION_INDEX', responseData.contributionIndex)
|
||||
this.status.msg = 'Your contribution is verified and recorded.'
|
||||
this.status.type = 'is-success'
|
||||
if (this.contributionType === 'anonymous') {
|
||||
console.log(
|
||||
`${window.location.origin}/authorize-contribution?token=${responseData.token}`
|
||||
)
|
||||
} else {
|
||||
this.status.msg += ' Now you can post attestation from your twitter account.'
|
||||
}
|
||||
} else if (resp.status === 422) {
|
||||
if (retry < 3) {
|
||||
console.log(`Looks like someone else uploaded contribution ahead of us, retrying`)
|
||||
|
@ -176,6 +176,7 @@ router.get('/user_data/', (req, res) => {
|
||||
|
||||
router.get('/logout', (req, res) => {
|
||||
req.session.destroy()
|
||||
res.send('OK')
|
||||
})
|
||||
|
||||
module.exports = router
|
||||
|
Loading…
Reference in New Issue
Block a user