Feat: bot failed state to show/hide llm restart btn

This commit is contained in:
Grail Finder
2025-07-13 08:31:16 +03:00
parent 757586ea22
commit 155aa1b2cb
6 changed files with 27 additions and 13 deletions

View File

@ -74,7 +74,7 @@
{{end}}
</div>
<div>
{{if and (eq .State.Username .Room.CreatorName) (.Room.IsRunning)}}
{{if and (eq .State.Username .Room.CreatorName) (.Room.BotFailed)}}
<button hx-get="/renotify-bot" hx-swap="none" class="bg-gray-100 text-black px-1 py-1 rounded">Btn in case llm call failed</button>
{{end}}
</div>