aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/templates/views/settings_main.html
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-02-17 10:17:14 +0300
committerGravatar Vitaly Takmazov2022-02-17 10:17:14 +0300
commitb38edd75f5142da515e46dbbc667162186a77653 (patch)
tree3a24f5f993d3b25fc5cfd02f92c680ed3ad77ade /src/main/resources/templates/views/settings_main.html
parentd95517f241f415c8603faac93f4efc8eea14dd15 (diff)
Do not allow to delete Telegram when it is the only social account
Diffstat (limited to 'src/main/resources/templates/views/settings_main.html')
-rw-r--r--src/main/resources/templates/views/settings_main.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/resources/templates/views/settings_main.html b/src/main/resources/templates/views/settings_main.html
index a6cca7a3..678d4c6f 100644
--- a/src/main/resources/templates/views/settings_main.html
+++ b/src/main/resources/templates/views/settings_main.html
@@ -24,7 +24,7 @@
<form action="/settings" method="post">
<div>Telegram: <b>{{ telegram_name }}</b> &mdash;
<input type="hidden" name="page" value="telegram-del"/>
- <input type="submit" value=" Disable " class="Button" />
+ <input type="submit" value=" Disable " {% if not beans.userServiceImpl.canDeleteTelegramUser(visitor) %}disabled="disabled"{% endif %} class="Button" />
</div>
</form>
{% else %}