Update copy for file upload failure

This commit is contained in:
richard-dds 2019-08-09 15:39:59 -04:00
parent 8d7c4672b0
commit 3ecb2cf84f
2 changed files with 2 additions and 3 deletions

View File

@ -68,7 +68,6 @@ export default {
const response = await this.uploader.upload(file, this.objectName)
if (response.ok) {
this.attachment = e.target.value
this.showErrors = false
this.$refs.attachmentFilename.value = file.name
this.$refs.attachmentObjectName.value = this.objectName
} else {

View File

@ -44,10 +44,10 @@
<input type="hidden" name="{{ field.object_name.name }}" id="{{ field.object_name.name }}" ref="attachmentObjectName">
</div>
<template v-if="uploadError">
<span v-show="showErrors" class="usa-input__message">!{uploadError}</span>
<span class="usa-input__message">There was an error uploading your file. Please try again. If you encounter repeated problems uploading this file, please contact CCPO.</span>
</template>
{% for error, error_messages in field.errors.items() %}
<span v-show="showErrors" class="usa-input__message">{{error_messages[0]}}.</span>
<span class="usa-input__message">{{error_messages[0]}}</span>
{% endfor %}
</div>
</div>