Show annual spend calculated from monthly spend

This commit is contained in:
Patrick Smith
2018-08-10 11:23:22 -04:00
parent 855857217f
commit 8859ca238e
2 changed files with 12 additions and 2 deletions

View File

@@ -17,8 +17,14 @@ export default {
},
data: function () {
const {
estimated_monthly_spend = 0,
jedi_migration = ''
} = this.initialData
return {
jedi_migration: this.initialData.jedi_migration
estimated_monthly_spend,
jedi_migration
}
},
@@ -27,6 +33,10 @@ export default {
},
computed: {
annualSpend: function () {
const monthlySpend = this.estimated_monthly_spend || 0
return monthlySpend * 12
},
isJediMigration: function () {
return this.jedi_migration === 'yes'
}