Set date to today's in TransactionWizard component
MODIFY
resources/assets/js/components/TransactionWizard.vue
resources/assets/js/components/TransactionWizard.vue
</div>
<div class="input">
<label>Description</label>
- <input type="text" v-model="description" style="background: #FFF;" />
+ <input type="text" v-model="description" placeholder="Birthday Present Angela" style="background: #FFF;" />
<validation-error v-if="errors.description" :message="errors.description"></validation-error>
</div>
<div class="input">
return {
type: 'earning',
errors: [],
- date: '',
+ date: this.getTodaysDate(),
description: '',
amount: '',
loading: false
this.type = type
},
+ getTodaysDate() {
+ return '2018-11-29'
+ },
+
createEarning() {
if (!this.loading) {
this.loading = true
this.errors = []
- this.date = ''
+ this.date = this.getTodaysDate()
this.description = ''
this.amount = ''

Set date to today's in TransactionWizard component