mirror of
https://github.com/tornadocash/trusted-setup-server.git
synced 2024-11-22 01:46:52 +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 {
|
.box {
|
||||||
background-color: $primary-invert;
|
background-color: $primary-invert;
|
||||||
border-color: #393939;
|
border-color: #393939;
|
||||||
|
cursor: inherit;
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
color: $white;
|
color: $white;
|
||||||
@ -148,4 +149,15 @@
|
|||||||
margin-bottom: $block-spacing;
|
margin-bottom: $block-spacing;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
> .buttons {
|
||||||
|
&:not(:last-child) {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button {
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
Make the contribution
|
Make the contribution
|
||||||
</b-button>
|
</b-button>
|
||||||
<b-button
|
<b-button
|
||||||
v-if="status.type === 'is-success'"
|
v-if="status.type === 'is-success' && contributionType !== 'anonymous'"
|
||||||
@click="makeTweet"
|
@click="makeTweet"
|
||||||
type="is-primary"
|
type="is-primary"
|
||||||
tag="a"
|
tag="a"
|
||||||
@ -160,14 +160,17 @@ export default {
|
|||||||
body: formData
|
body: formData
|
||||||
})
|
})
|
||||||
if (resp.ok) {
|
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()
|
const responseData = await resp.json()
|
||||||
this.$store.commit('user/SET_CONTRIBUTION_INDEX', responseData.contributionIndex)
|
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(
|
console.log(
|
||||||
`${window.location.origin}/authorize-contribution?token=${responseData.token}`
|
`${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) {
|
} else if (resp.status === 422) {
|
||||||
if (retry < 3) {
|
if (retry < 3) {
|
||||||
console.log(`Looks like someone else uploaded contribution ahead of us, retrying`)
|
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) => {
|
router.get('/logout', (req, res) => {
|
||||||
req.session.destroy()
|
req.session.destroy()
|
||||||
|
res.send('OK')
|
||||||
})
|
})
|
||||||
|
|
||||||
module.exports = router
|
module.exports = router
|
||||||
|
Loading…
Reference in New Issue
Block a user