diff --git a/frontend/src/components/Transactions/TransactionCreation.vue b/frontend/src/components/Transactions/TransactionCreation.vue index 33b048c07..43178e5f2 100644 --- a/frontend/src/components/Transactions/TransactionCreation.vue +++ b/frontend/src/components/Transactions/TransactionCreation.vue @@ -60,42 +60,37 @@ export default { props: { amount: { type: String, - }, - balance: { - type: String, + required: true, }, balanceDate: { type: String, + required: true, }, decay: { type: Object, - }, - id: { - type: Number, + required: true, }, linkedUser: { type: Object, + required: true, }, memo: { type: String, + required: true, }, typeId: { type: String, + required: true, }, - properties: { - type: Object, + decayStartBlock: { + type: Date, + required: true, }, - decayStartBlock: { type: Date }, }, data() { return { visible: false, } }, - computed: { - isStartBlock() { - return new Date(this.decay.start).getTime() === this.decayStartBlock.getTime() - }, - }, } diff --git a/frontend/src/components/Transactions/TransactionDecay.vue b/frontend/src/components/Transactions/TransactionDecay.vue index d6c210d9d..4038e782f 100644 --- a/frontend/src/components/Transactions/TransactionDecay.vue +++ b/frontend/src/components/Transactions/TransactionDecay.vue @@ -43,12 +43,15 @@ export default { props: { amount: { type: String, + required: true, }, balance: { type: String, + required: true, }, decay: { type: Object, + required: true, }, }, data() { diff --git a/frontend/src/components/Transactions/TransactionLink.vue b/frontend/src/components/Transactions/TransactionLink.vue index 9799a1365..5c261adbf 100644 --- a/frontend/src/components/Transactions/TransactionLink.vue +++ b/frontend/src/components/Transactions/TransactionLink.vue @@ -50,12 +50,15 @@ export default { props: { amount: { type: String, + required: true, }, decay: { type: Object, + required: true, }, transactionLinkCount: { type: Number, + required: true, }, }, data() { diff --git a/frontend/src/components/Transactions/TransactionReceive.vue b/frontend/src/components/Transactions/TransactionReceive.vue index 8766fbfa3..e9dc23cdb 100644 --- a/frontend/src/components/Transactions/TransactionReceive.vue +++ b/frontend/src/components/Transactions/TransactionReceive.vue @@ -61,39 +61,36 @@ export default { props: { amount: { type: String, - }, - balance: { - type: String, + required: true, }, balanceDate: { type: String, + required: true, }, decay: { type: Object, - }, - id: { - type: Number, + required: true, }, linkedUser: { type: Object, + required: true, }, memo: { type: String, + required: true, }, typeId: { type: String, }, - decayStartBlock: { type: Date }, + decayStartBlock: { + type: Date, + required: true, + }, }, data() { return { visible: false, } }, - computed: { - isStartBlock() { - return new Date(this.decay.start).getTime() === this.decayStartBlock.getTime() - }, - }, } diff --git a/frontend/src/components/Transactions/TransactionSend.vue b/frontend/src/components/Transactions/TransactionSend.vue index 0ae8495f5..18112f8e1 100644 --- a/frontend/src/components/Transactions/TransactionSend.vue +++ b/frontend/src/components/Transactions/TransactionSend.vue @@ -61,29 +61,32 @@ export default { props: { amount: { type: String, - }, - balance: { - type: String, + required: true, }, balanceDate: { type: String, + required: true, }, decay: { type: Object, - }, - id: { - type: Number, + required: true, }, linkedUser: { type: Object, + required: true, }, memo: { type: String, + required: true, }, typeId: { type: String, + required: true, + }, + decayStartBlock: { + type: Date, + required: true, }, - decayStartBlock: { type: Date }, }, data() { return {