Toggle option for organization providing assistance

This commit is contained in:
Patrick Smith 2018-08-10 14:52:08 -04:00
parent f53e656475
commit 6e763773b5
2 changed files with 10 additions and 3 deletions

View File

@ -19,12 +19,14 @@ export default {
data: function () { data: function () {
const { const {
estimated_monthly_spend = 0, estimated_monthly_spend = 0,
jedi_migration = '' jedi_migration = '',
technical_support_team = ''
} = this.initialData } = this.initialData
return { return {
estimated_monthly_spend, estimated_monthly_spend,
jedi_migration jedi_migration,
technical_support_team
} }
}, },
@ -42,6 +44,9 @@ export default {
}, },
isJediMigration: function () { isJediMigration: function () {
return this.jedi_migration === 'yes' return this.jedi_migration === 'yes'
},
hasTechnicalSupportTeam: function () {
return this.technical_support_team === 'yes'
} }
}, },

View File

@ -34,7 +34,9 @@
<template v-if='isJediMigration' v-cloak> <template v-if='isJediMigration' v-cloak>
{{ OptionsInput(f.rationalization_software_systems) }} {{ OptionsInput(f.rationalization_software_systems) }}
{{ OptionsInput(f.technical_support_team) }} {{ OptionsInput(f.technical_support_team) }}
{{ OptionsInput(f.organization_providing_assistance) }} <template v-if="hasTechnicalSupportTeam">
{{ OptionsInput(f.organization_providing_assistance) }}
</template>
{{ OptionsInput(f.engineering_assessment) }} {{ OptionsInput(f.engineering_assessment) }}
{{ OptionsInput(f.data_transfers) }} {{ OptionsInput(f.data_transfers) }}
{{ OptionsInput(f.expected_completion_date) }} {{ OptionsInput(f.expected_completion_date) }}