Feat: bot failed state to show/hide llm restart btn
This commit is contained in:
@ -18,7 +18,7 @@
|
||||
if (!window.actionHistoryScrollSet) {
|
||||
htmx.onLoad(function(target) {
|
||||
if (target.id === 'actionHistoryContainer') {
|
||||
target.scrollTop = target.scrollHeight;
|
||||
target.scrollToBottom();
|
||||
}
|
||||
});
|
||||
window.actionHistoryScrollSet = true;
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user