remove show_intro_test_send_email, highlight from AliasInfo

This commit is contained in:
Son NK 2020-04-25 11:25:45 +02:00
parent 1c9d953044
commit 72f3e47c3c
2 changed files with 2 additions and 10 deletions

View File

@ -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>

View File

@ -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