mirror of
https://github.com/simple-login/app.git
synced 2024-09-28 20:51:29 +02:00
remove show_intro_test_send_email, highlight from AliasInfo
This commit is contained in:
parent
1c9d953044
commit
72f3e47c3c
@ -179,7 +179,8 @@
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<a href="{{ url_for('dashboard.alias_contact_manager', alias_id=alias.id) }}"
|
||||
{% if alias_info.show_intro_test_send_email %}
|
||||
id="send-email-{{ alias.id }}"
|
||||
{% if loop.index ==1 %}
|
||||
data-intro="Not only alias can receive emails, it can <em>send</em> emails too! <br><br>
|
||||
You can add a new <em>contact</em> to for your alias here. <br><br>
|
||||
To send an email to your contact, SimpleLogin will create a <em>special</em> email address. <br><br>
|
||||
|
@ -35,9 +35,6 @@ class AliasInfo:
|
||||
latest_email_log: EmailLog = None
|
||||
latest_contact: Contact = None
|
||||
|
||||
show_intro_test_send_email: bool = False
|
||||
highlight: bool = False
|
||||
|
||||
|
||||
@dashboard_bp.route("/", methods=["GET", "POST"])
|
||||
@login_required
|
||||
@ -233,12 +230,6 @@ def get_alias_infos_with_pagination(user, page: int, query=None) -> [AliasInfo]:
|
||||
for alias, latest_activity in q:
|
||||
ret.append(get_alias_info(alias))
|
||||
|
||||
# only show intro on the first enabled alias
|
||||
for alias_info in ret:
|
||||
if alias_info.alias.enabled:
|
||||
alias_info.show_intro_test_send_email = True
|
||||
break
|
||||
|
||||
return ret
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user