explain why deleting a subdomain/directory won't restore the quota

This commit is contained in:
Son 2021-11-20 20:01:36 +01:00
parent 63f4d15329
commit bc936436ef
2 changed files with 22 additions and 6 deletions

View File

@ -199,7 +199,8 @@
let that = $(this);
let message = `All aliases associated with <b>${directory}</b> directory will also be deleted. ` +
`Your directory quota will be {{ current_user.directory_quota - 1 }} after the deletion, ` +
`As a deleted directory can't be used by someone else, deleting a directory doesn't reset your directory quota. ` +
`Your directory quota will be {{ current_user.directory_quota }} after the deletion, ` +
" please confirm.";
bootbox.confirm({

View File

@ -136,11 +136,23 @@
{% endif %}
</h3>
<div class="mb-3">This operation is <b>irreversible</b>.
All aliases associated with this domain will be deleted.
<div class="mb-3">
{% if custom_domain.is_sl_subdomain %}
<br>
After deletion, your subdomain quota will be {{ current_user.subdomain_quota - 1 }}.
<div class="alert alert-danger">
This operation is <b>irreversible</b>.
All aliases associated with this subdomain will be deleted.
</div>
<div class="alert alert-warning">
Because a deleted subdomain can't be recycled, i.e. reused by someone else,
deleting a subdomain won't restore the subdomain quota.
After deletion, your subdomain quota will still be {{ current_user.subdomain_quota }}.
We recommend to disable the <b>catch-all</b> option instead of deleting this subdomain.
</div>
{% else %}
<div class="alert alert-danger">
This operation is <b>irreversible</b>.
All aliases associated with this domain will be deleted.
</div>
{% endif %}
</div>
@ -148,7 +160,10 @@
<form method="post">
<input type="hidden" name="form-name" value="delete">
<span class="delete-custom-domain btn btn-danger">Delete domain</span>
<span
class="delete-custom-domain btn btn-danger">
Delete {{ custom_domain.domain }}
</span>
</form>
{% endblock %}