Skip to content

Commit

Permalink
fix: don't show delete button for active sub users (#3011)
Browse files Browse the repository at this point in the history
- showed delete button ONLY to active sub users before
  • Loading branch information
LuccaBitfly authored Jan 22, 2025
1 parent 6ea8cab commit f75902b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/user/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -461,11 +461,11 @@ <h3 class="h5">Delete Account <i class="fas fa-exclamation-triangle text-warning
<div class="card-body">
<div class="d-flex justify-content-between">
{{ if .IsUserDeleteDisabled }}
<span> You currently have an active premium subscription or premium API plan. To delete your account please cancel your subscription or contact our <a href="https://dsc.gg/beaconchain">support</a> </span>
{{ else }}
<span> Warning, you will not be able to recover your account! </span>
<!-- Button trigger modal -->
<button type="button" class="btn btn-sm btn-outline-danger" data-toggle="modal" data-target="#deleteAccountModal">Delete</button>
{{ else }}
<span> You currently have an active premium subscription or premium API plan. To delete your account please cancel your subscription or contact our <a href="https://dsc.gg/beaconchain">support</a> </span>
{{ end }}
</div>
</div>
Expand Down

0 comments on commit f75902b

Please sign in to comment.