mirror of
https://github.com/simple-login/app.git
synced 2025-02-23 15:23:27 +08:00
Removed successful ticket created page and replaced with notification
This commit is contained in:
parent
3fedc84c95
commit
c9974d5321
3 changed files with 3 additions and 40 deletions
|
@ -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"))
|
||||
|
|
|
@ -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 %}
|
||||
|
||||
|
||||
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue