mirror of
https://github.com/IT4Change/gradido.git
synced 2026-03-01 12:44:43 +00:00
even more compact code
This commit is contained in:
parent
8c33d5e913
commit
1b1f4adb93
@ -45,6 +45,13 @@ import TransactionConfirmation from './AccountOverview/GddSend/TransactionConfir
|
||||
import TransactionResult from './AccountOverview/GddSend/TransactionResult.vue'
|
||||
import communityAPI from '../../apis/communityAPI.js'
|
||||
|
||||
const _emptyTransactionData = {
|
||||
email: '',
|
||||
amount: 0,
|
||||
memo: '',
|
||||
target_date: '',
|
||||
}
|
||||
|
||||
export default {
|
||||
name: 'Overview',
|
||||
components: {
|
||||
@ -59,12 +66,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
timestamp: Date.now(),
|
||||
transactionData: {
|
||||
email: '',
|
||||
amount: 0,
|
||||
target_date: '',
|
||||
memo: '',
|
||||
},
|
||||
transactionData: { ..._emptyTransactionData },
|
||||
error: false,
|
||||
currentTransactionStep: 0,
|
||||
}
|
||||
@ -99,12 +101,7 @@ export default {
|
||||
this.currentTransactionStep = 2
|
||||
},
|
||||
onReset() {
|
||||
this.transactionData = {
|
||||
email: '',
|
||||
amount: 0,
|
||||
memo: '',
|
||||
target_date: '',
|
||||
}
|
||||
this.transactionData = { ..._emptyTransactionData }
|
||||
this.currentTransactionStep = 0
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user