Reimplement SaveButton disabled until input change

This commit is contained in:
leigh-mil
2019-06-13 14:34:55 -04:00
parent ab761d9d88
commit 5be4efb9d9
9 changed files with 323 additions and 267 deletions

View File

@@ -1,6 +1,6 @@
{% from "components/icon.html" import Icon %}
{% macro UploadInput(field, show_label=False) -%}
{% macro UploadInput(field, show_label=False, watch=False) -%}
<uploadinput
inline-template
{% if not field.errors %}
@@ -8,6 +8,7 @@
{% else %}
v-bind:initial-errors='true'
{% endif %}
v-bind:watch='{{ watch | string | lower }}'
>
<div>
<div v-show="hasAttachment" class="uploaded-file">