Removed successful ticket created page and replaced with notification

This commit is contained in:
Adrià Casajús 2022-02-10 12:38:56 +01:00
parent 3fedc84c95
commit c9974d5321
No known key found for this signature in database
GPG Key ID: F0033226A5AFC9B9
3 changed files with 3 additions and 40 deletions

View File

@ -75,7 +75,6 @@ def create_zendesk_request(email: str, content: str, files: [FileStorage]) -> bo
response = requests.post(url, data=json.dumps(data), headers=headers)
if not check_zendesk_response_status(response.status_code):
return False
flash("Ticket was created. You should receive an email notification", "success")
LOG.debug("Ticket created")
return True
@ -103,4 +102,5 @@ def process_support_dialog():
"dashboard/support.html", ticket_email=email, ticket_content=content
)
g.deduct_limit = True
return render_template("dashboard/support_ticket_created.html", ticket_email=email)
flash("Ticket created. You should have received an email notification.", "success")
return redirect(url_for("dashboard.index"))

View File

@ -1,37 +0,0 @@
{% extends 'default.html' %}
{% set active_page = None %}
{% block title %}
Support
{% endblock %}
{% block head %}
<style>
.card-title {
font-size: 22px;
font-weight: 600;
margin-bottom: 3px;
}
</style>
{% endblock %}
{% block default_content %}
<div class="col pb-3">
<!-- Current plan -->
<div class="card">
<div class="card-body">
<div class="card-title mb-3">Support ticket has been created for {{ ticketEmail }}</div>
<div class="mt-2">
You should have received an email notification. We'll get in contact with you shortly.
</div>
</div>
</div>
</div>
{% endblock %}

View File

@ -81,7 +81,7 @@
</a>
</div>
<div class="dropdown-item">
<a href="https://forum.simplelogin.io/" target="_blank">
<a href="https://github.com/simple-login/app/discussions" target="_blank">
Forum
<i class="fa fa-external-link" aria-hidden="true"></i>
</a>