Only show the 'I'm Finished Sending' button if the user actually already sent (or tried to send) anything

This commit is contained in:
Miguel Jacq 2018-07-17 11:53:55 +10:00
parent 4092a65e0c
commit e37dbb3efb
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -35,9 +35,13 @@
</div>
</div>
{% if receive_allow_receiver_shutdown %}
<form method="post" action="{{ close_action }}">
<input type="submit" class="close-button" value="I'm Finished Sending" />
</form>
{% with messages = get_flashed_messages() %}
{% if messages %}
<form method="post" action="{{ close_action }}">
<input type="submit" class="close-button" value="I'm Finished Sending" />
</form>
{% endif %}
{% endwith %}
{% endif %}
</body>
</html>