diff options
author | Vitaly Takmazov | 2022-02-17 10:17:14 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-02-17 10:17:14 +0300 |
commit | b38edd75f5142da515e46dbbc667162186a77653 (patch) | |
tree | 3a24f5f993d3b25fc5cfd02f92c680ed3ad77ade /src/main/resources/templates | |
parent | d95517f241f415c8603faac93f4efc8eea14dd15 (diff) |
Do not allow to delete Telegram when it is the only social account
Diffstat (limited to 'src/main/resources/templates')
-rw-r--r-- | src/main/resources/templates/views/settings_main.html | 2 |
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> — <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 %} |