Remove no longer used js components

This commit is contained in:
Patrick Smith
2019-02-22 11:44:07 -05:00
parent 95f2126881
commit d3e6b7fbab
6 changed files with 0 additions and 401 deletions

View File

@@ -1,34 +0,0 @@
import textinput from '../text_input'
import LocalDatetime from '../local_datetime'
export default {
name: 'ccpo-approval',
components: {
textinput,
LocalDatetime,
},
props: {
initialState: String,
},
data: function() {
return {
approving: this.initialState === 'approving',
denying: this.initialState === 'denying',
}
},
methods: {
setReview: function(e) {
if (e.target.value === 'approving') {
this.approving = true
this.denying = false
} else {
this.approving = false
this.denying = true
}
},
},
}

View File

@@ -1,64 +0,0 @@
import createNumberMask from 'text-mask-addons/dist/createNumberMask'
import { conformToMask } from 'vue-text-mask'
import FormMixin from '../../mixins/form'
import textinput from '../text_input'
import optionsinput from '../options_input'
export default {
name: 'details-of-use',
mixins: [FormMixin],
components: {
textinput,
optionsinput,
},
props: {
initialData: {
type: Object,
default: () => ({}),
},
},
data: function() {
const {
estimated_monthly_spend = 0,
jedi_migration = '',
technical_support_team = '',
} = this.initialData
return {
estimated_monthly_spend,
jedi_migration,
technical_support_team,
}
},
computed: {
annualSpend: function() {
const monthlySpend = this.estimated_monthly_spend || 0
return monthlySpend * 12
},
annualSpendStr: function() {
return this.formatDollars(this.annualSpend)
},
jediMigrationOptionSelected: function() {
return this.jedi_migration !== ''
},
isJediMigration: function() {
return this.jedi_migration === 'yes'
},
hasTechnicalSupportTeam: function() {
return this.technical_support_team === 'yes'
},
},
methods: {
formatDollars: function(intValue) {
const mask = createNumberMask({ prefix: '$', allowDecimal: true })
return conformToMask(intValue.toString(), mask).conformedValue
},
},
}

View File

@@ -1,48 +0,0 @@
import FormMixin from '../../mixins/form'
import optionsinput from '../options_input'
import textinput from '../text_input'
import localdatetime from '../local_datetime'
export default {
name: 'financial',
mixins: [FormMixin],
components: {
optionsinput,
textinput,
localdatetime,
},
props: {
initialData: {
type: Object,
default: () => ({}),
},
},
data: function() {
const { funding_type = '' } = this.initialData
return {
funding_type,
shouldForceShowTaskOrder: false,
}
},
computed: {
showTaskOrderUpload: function() {
return (
!this.initialData.legacy_task_order.pdf || this.shouldForceShowTaskOrder
)
},
},
methods: {
forceShowTaskOrderUpload: function(e) {
console.log('forceShowTaskOrder', e)
e.preventDefault()
this.shouldForceShowTaskOrder = true
},
},
}