Remove unnecessary macro and Vue props

This commit is contained in:
richard-dds 2019-08-28 14:39:28 -04:00
parent 67a4bb602d
commit 11c1c37d7f
3 changed files with 3 additions and 6 deletions

View File

@ -1,6 +1,3 @@
import createNumberMask from 'text-mask-addons/dist/createNumberMask'
import { conformToMask } from 'vue-text-mask'
import { emitEvent } from '../lib/emitters'
import FormMixin from '../mixins/form'
import textinput from './text_input'
@ -68,7 +65,7 @@ export default {
}
const uploader = await this.getUploader()
const response = await uploader.upload(file, this.objectName)
const response = await uploader.upload(file)
if (response.ok) {
this.attachment = e.target.value
this.$refs.attachmentFilename.value = file.name

View File

@ -1,6 +1,6 @@
{% from "components/icon.html" import Icon %}
{% macro UploadInput(field, portfolio_id, show_label=False, watch=False, token="", object_name="") -%}
{% macro UploadInput(field, portfolio_id, show_label=False, watch=False) -%}
<uploadinput
inline-template
{% if not field.errors %}

View File

@ -16,5 +16,5 @@
{% block to_builder_form_field %}
{{ TOFormStepHeader('task_orders.form.supporting_docs_header' | translate, 'task_orders.form.supporting_docs_text' | translate) }}
{{ UploadInput(form.pdf, portfolio.id, watch=True, token=token, object_name=object_name) }}
{{ UploadInput(form.pdf, portfolio.id, watch=True) }}
{% endblock %}