do not show subdomains on the domain page
This commit is contained in:
parent
6eb702870c
commit
67377a0f22
|
@ -27,7 +27,9 @@ def custom_domain_to_dict(custom_domain: CustomDomain):
|
||||||
@require_api_auth
|
@require_api_auth
|
||||||
def get_custom_domains():
|
def get_custom_domains():
|
||||||
user = g.user
|
user = g.user
|
||||||
custom_domains = CustomDomain.filter_by(user_id=user.id).all()
|
custom_domains = CustomDomain.filter_by(
|
||||||
|
user_id=user.id, is_sl_subdomain=False
|
||||||
|
).all()
|
||||||
|
|
||||||
return jsonify(custom_domains=[custom_domain_to_dict(cd) for cd in custom_domains])
|
return jsonify(custom_domains=[custom_domain_to_dict(cd) for cd in custom_domains])
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,9 @@ class NewCustomDomainForm(FlaskForm):
|
||||||
@dashboard_bp.route("/custom_domain", methods=["GET", "POST"])
|
@dashboard_bp.route("/custom_domain", methods=["GET", "POST"])
|
||||||
@login_required
|
@login_required
|
||||||
def custom_domain():
|
def custom_domain():
|
||||||
custom_domains = CustomDomain.filter_by(user_id=current_user.id).all()
|
custom_domains = CustomDomain.filter_by(
|
||||||
|
user_id=current_user.id, is_sl_subdomain=False
|
||||||
|
).all()
|
||||||
mailboxes = current_user.mailboxes()
|
mailboxes = current_user.mailboxes()
|
||||||
new_custom_domain_form = NewCustomDomainForm()
|
new_custom_domain_form = NewCustomDomainForm()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue