mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Only show the 'I'm Finished Sending' button if the user actually already sent (or tried to send) anything
This commit is contained in:
parent
4092a65e0c
commit
e37dbb3efb
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user