Removed disabled page and redirected to the normal dashboard

This commit is contained in:
Adrià Casajús 2022-02-10 11:04:36 +01:00
parent f59c5499fb
commit e844c9a392
No known key found for this signature in database
GPG Key ID: F0033226A5AFC9B9
2 changed files with 2 additions and 35 deletions

View File

@ -19,7 +19,8 @@ VALID_MIME_TYPES = ["text/plain", "message/rfc822"]
@login_required
def show_support_dialog():
if not ZENDESK_HOST:
return render_template("dashboard/support_disabled.html")
flash("Support form is not enabled", "warning")
return redirect(url_for("dashboard.index"))
return render_template("dashboard/support.html", ticket_email=current_user.email)

View File

@ -1,34 +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 form is disabled. Please configure Zendesk integration.</div>
</div>
</div>
</div>
{% endblock %}