mirror of
https://github.com/simple-login/app.git
synced 2025-02-24 15:53:22 +08:00
do not show copy button on disabled alias
This commit is contained in:
parent
a5a3bbbd63
commit
ec3f2116ff
1 changed files with 27 additions and 22 deletions
|
@ -65,18 +65,22 @@
|
|||
|
||||
<td>
|
||||
<div class="btn-group">
|
||||
{% if gen_email.enabled %}
|
||||
<button class="clipboard btn btn-secondary btn-sm"
|
||||
data-toggle="tooltip"
|
||||
title="Copy the alias to clipboard"
|
||||
data-clipboard-text="{{ gen_email.email }}">
|
||||
Copy
|
||||
</button>
|
||||
|
||||
</button>
|
||||
{% endif %}
|
||||
|
||||
{% if gen_email.enabled %}
|
||||
<form method="post">
|
||||
<input type="hidden" name="form-name" value="trigger-email">
|
||||
<input type="hidden" name="gen-email-id" value="{{ gen_email.id }}">
|
||||
|
||||
{% if gen_email.enabled %}
|
||||
|
||||
<button class="btn btn-secondary btn-sm"
|
||||
data-toggle="tooltip"
|
||||
title="Send a test email to the alias."
|
||||
|
@ -87,8 +91,9 @@
|
|||
{% endif %}
|
||||
>Trigger Test Email
|
||||
</button>
|
||||
{% endif %}
|
||||
</form>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
</td>
|
||||
|
||||
|
|
Loading…
Reference in a new issue