This commit is contained in:
Saifeddine ALOUI 2023-04-15 00:08:49 +02:00
parent ddb5d220af
commit ebc22a52ac
2 changed files with 5 additions and 2 deletions

3
.gitignore vendored
View File

@ -150,3 +150,6 @@ configs/*
personalities/*
!personalities/gpt4all_chatbot.yaml
# extensions
extensions/
!extensions/.keep

View File

@ -65,12 +65,12 @@ function populate_discussions_list()
//renameButton.style.backgroundImage = "/rename_discussion.svg"; //.textContent = 'Rename';
renameButton.addEventListener('click', () => {
const dialog = document.createElement('dialog');
dialog.classList.add('bg-gray-500 text-white', 'rounded', 'p-4');
dialog.classList.add('bg-gray-500', 'text-white', 'rounded', 'p-4');
const inputLabel = document.createElement('label');
inputLabel.textContent = 'New name: ';
const inputField = document.createElement('input');
inputField.classList.add('border', 'border-gray-400', 'rounded', 'py-1', 'px-2');
inputField.classList.add('border', "px-2", "mx-2", 'bg-gray-800', 'border-gray-400', 'rounded', 'py-1', 'px-2');
inputField.setAttribute('type', 'text');
inputField.setAttribute('name', 'title');
inputField.setAttribute('value', discussion.title);