fix
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
data-id="{{ Conversation.ID.String() }}" style="cursor: pointer;"
|
||||
onclick="toggleConversationSelection(this, '{{ Conversation.Name }}')"
|
||||
hx-get="/selectConversation?conversation-id={{ Conversation.ID.String() }}" hx-swap="outerHTML"
|
||||
hx-target="#chat-container">
|
||||
hx-target="#chat-container" name="{{ Conversation.Name }}">
|
||||
<span>{{ Conversation.Name }}</span>
|
||||
</div>
|
||||
{% endfor %}
|
||||
@@ -159,10 +159,10 @@
|
||||
document.getElementById('conversation-list').classList.remove('is-hidden');
|
||||
|
||||
// If the selected is the default conversation
|
||||
if (document.getElementsByClassName('selected icon-conv')[0].getAttribute('data-id') === 'default') {
|
||||
if (document.getElementsByClassName('selected icon-conv')[0].getAttribute('name') === 'Default') {
|
||||
document.getElementById('delete-conversation-button').classList.add('is-hidden');
|
||||
document.getElementById('archive-default-conversation-button').classList.remove('is-hidden');
|
||||
document.getElementById('confirm-archive-default-conversation-button').classList.remove('is-hidden');
|
||||
document.getElementById('confirm-archive-default-conversation-button').classList.add('is-hidden');
|
||||
} else {
|
||||
document.getElementById('delete-conversation-button').classList.remove('is-hidden');
|
||||
document.getElementById('archive-default-conversation-button').classList.add('is-hidden');
|
||||
|
||||
Reference in New Issue
Block a user