mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
feat(frontend): send coins via gradidoID
This commit is contained in:
parent
b67192f108
commit
0936602cb6
@ -50,7 +50,7 @@
|
|||||||
<b-col>
|
<b-col>
|
||||||
<b-row>
|
<b-row>
|
||||||
<b-col cols="12">
|
<b-col cols="12">
|
||||||
<div v-if="radioSelected === sendTypes.send">
|
<div v-if="radioSelected === sendTypes.send && !gradidoID">
|
||||||
<input-email
|
<input-email
|
||||||
:name="$t('form.recipient')"
|
:name="$t('form.recipient')"
|
||||||
:label="$t('form.recipient')"
|
:label="$t('form.recipient')"
|
||||||
@ -60,6 +60,14 @@
|
|||||||
@onValidation="onValidation"
|
@onValidation="onValidation"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-else-if="gradidoID" class="mb-4">
|
||||||
|
<b-row>
|
||||||
|
<b-col>{{ $t('form.recipient') }}</b-col>
|
||||||
|
</b-row>
|
||||||
|
<b-row>
|
||||||
|
<b-col>{{ gradidoID }}</b-col>
|
||||||
|
</b-row>
|
||||||
|
</div>
|
||||||
</b-col>
|
</b-col>
|
||||||
<b-col cols="12" lg="6">
|
<b-col cols="12" lg="6">
|
||||||
<input-amount
|
<input-amount
|
||||||
@ -196,6 +204,9 @@ export default {
|
|||||||
recipientEmail() {
|
recipientEmail() {
|
||||||
return this.getTunneledEmail()
|
return this.getTunneledEmail()
|
||||||
},
|
},
|
||||||
|
gradidoID() {
|
||||||
|
return this.$route.query && this.$route.query.gradidoID
|
||||||
|
},
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.setNewRecipientEmail()
|
this.setNewRecipientEmail()
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="name">
|
<div class="name">
|
||||||
<div class="gdd-transaction-list-item-name">
|
<div class="gdd-transaction-list-item-name">
|
||||||
<div v-if="linkedUser && linkedUser.email">
|
<div v-if="linkedUser && linkedUser.gradidoID">
|
||||||
<b-link @click.stop="tunnelEmail" :class="fontColor">
|
<b-link @click.stop="tunnelEmail" :class="fontColor">
|
||||||
{{ itemText }}
|
{{ itemText }}
|
||||||
</b-link>
|
</b-link>
|
||||||
@ -36,7 +36,8 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
tunnelEmail() {
|
tunnelEmail() {
|
||||||
this.$emit('set-tunneled-email', this.linkedUser.email)
|
this.$emit('set-tunneled-email', this.linkedUser.email)
|
||||||
if (this.$router.history.current.fullPath !== '/send') this.$router.push({ path: '/send' })
|
if (this.$router.history.current.fullPath !== '/send')
|
||||||
|
this.$router.push({ path: '/send', query: { gradidoID: this.linkedUser.gradidoID } })
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
@ -144,6 +144,7 @@ export const createContributionMessage = gql`
|
|||||||
export const login = gql`
|
export const login = gql`
|
||||||
mutation($email: String!, $password: String!, $publisherId: Int) {
|
mutation($email: String!, $password: String!, $publisherId: Int) {
|
||||||
login(email: $email, password: $password, publisherId: $publisherId) {
|
login(email: $email, password: $password, publisherId: $publisherId) {
|
||||||
|
gradidoID
|
||||||
email
|
email
|
||||||
firstName
|
firstName
|
||||||
lastName
|
lastName
|
||||||
|
|||||||
@ -38,6 +38,7 @@ export const transactionsQuery = gql`
|
|||||||
linkedUser {
|
linkedUser {
|
||||||
firstName
|
firstName
|
||||||
lastName
|
lastName
|
||||||
|
gradidoID
|
||||||
email
|
email
|
||||||
}
|
}
|
||||||
decay {
|
decay {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user