Update funding form to handle uploading pdf/png

This commit is contained in:
Patrick Smith
2019-01-21 15:55:37 -05:00
parent 2298c5135e
commit 6a9290619d
7 changed files with 43 additions and 14 deletions

View File

@@ -19,6 +19,10 @@ export default {
initialData: {
type: Object,
default: () => ({})
},
uploadErrors: {
type: Array,
default: () => ([])
}
},
@@ -28,6 +32,7 @@ export default {
clin_02 = 0,
clin_03 = 0,
clin_04 = 0,
csp_estimate,
} = this.initialData
return {
@@ -35,6 +40,7 @@ export default {
clin_02,
clin_03,
clin_04,
showUpload: !csp_estimate || this.uploadErrors.length > 0
}
},
@@ -57,6 +63,9 @@ export default {
const mask = createNumberMask({ prefix: '$', allowDecimal: true })
return conformToMask(intValue.toString(), mask).conformedValue
},
showUploadInput: function() {
this.showUpload = true
},
updateBudget: function() {
document.querySelector('#to-target').innerText = this.totalBudgetStr
}